RE: [PHP] Parse error, member zone...

From: Date: Thu, 24 Oct 2002 19:57:42 +0000
Subject: RE: [PHP] Parse error, member zone...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121345@lists.php.net to get a copy of this message
-----Original Message----- From: Cyclone Médias [mailto:benjamin.trepanier@cyclonemedias.com] Sent: Thursday, October 24, 2002 2:52 PM To: Jay Blanchard Subject: Re: [PHP] Parse error, member zone... on 10/24/02 3:47 PM, Jay Blanchard at jay.blanchard@niicommunications.com wrote: > [snip] > Parse error: parse error, unexpected T_STRING in > /usr/local/psa/home/vhosts/cyclonemedias.com/httpdocs/webtest/Member/validat > e.php on line 16 > >     $query = ("SELECT * FROM clients > WHERE User='$user_name' AND Password='$password'"); > [/snip] > > It appears that line 16 is your query and should be; > >     $query = ("SELECT * FROM clients WHERE User='" . $user_name . > "' AND Password='" . $password . "' "); > > Note the quotes and concats for the variables. > > HTH! > > Jay > > Thanks, my editor is putting some invible character bettween expression...That happend when I'm pasting a selection from internet... strange... so the sequence is running but I've got a: error making query message... do you knbow why?? Thanks! Ben Replace your $result = with this if(!($result = mysql_query($query, $connection))){ print("MySQL Error: " . mysql_error() . "\n"); exit(); } This will give you a verbose answer on your query. Jay

« previous php.general (#121345) next »