I have an application where I need to write PHP code to a file that will be
used later...but it's not working the way I'd expect.
When I issue the following:
fwrite($fp, "http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay -
How 'bout this?
$init = 1;
$query = "SELECT foo ";
$query .= "FROM bar WHERE";
if ($init AND isset($var1)) {
$query .= "WHERE thus = '" . $var1 . "' ";
$init = 0;}
if ($init AND isset($var2)) {
$query .= "WHERE thus = '" . $var2 . "' ";
$init = 0;}
elseif (isset($var2)) {
$query
you need to use "==" instead of "="
"==" is used when comparing values (i.e. is this "==" to that)
"=" is used to set something's value (i.e. this "=" that)
-chip
-Original Message-
From: Chris Barnes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 11:12 AM
To: Php-General (
Bogdan -
Sorry for the delay to your follow-up.
The total script is below... first let me explain a little more of what I'm
doing for clarity's sake.
I'm downloading a lot of data files from a site. The way the site works, you
supply some information in a form regarding the data set you want.
I'm trying to connect up w/ an Access database one of our db administrators
set up.
The Access file has an "adp" extension...the data is housed in a view,
(essentially a read-only dump of some MS SQL Server tables).
I've set up the file as a System DSN in ODBC (WinNT)
When I issue the following
OK,
I'm pretty new to PHP, and have been reading this thread, and am just a
little freaked.
If I understand this right, the only way reason we can view the source code
of those pages is that the web server on which the page resides essentially
has a PHP page somewhere on their site that has some
6 matches
Mail list logo