Re: User Authentication Continued....

From: Date: Fri, 03 Oct 2003 21:02:00 +0000
Subject: Re: User Authentication Continued....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164985@lists.php.net to get a copy of this message
* Thus wrote Jeff McKeon (jmckeon@telaurus.com): > Actually, here's the problem I get with using global variables in a > mysql_query string.. > > [error begin] > PHP Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, > expecting T_STRING or T_VARIABLE or T_NUM_STRING > [error end] > > [code begin] > $query="SELECT * from tickets where VesselID='$_GET['vesselid']' order > by Status DESC, Created ASC"; > [code end] Enclose the var in curly brackets: $query="SELECT * from tickets where VesselID='{$_GET['vesselid']}' order Curt -- List Stats: http://zirzow.dyndns.org/html/mlists/php_general/ "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#164985) next »