Re: Parse Error

From: Date: Tue, 17 Feb 2004 17:30:32 +0000
Subject: Re: Parse Error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177984@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] More info about the parse error of my previous post: The lines 45-46: $mysql_query = "INSERT INTO sessions(sessionid,ver,agent,bwinf,screenwidth,screenheight,availwidth,a vail height) "; $mysql_query .= "VALUES('$sessionid','$ver','$agent','$bwinf',$scrwidth,$scrheight,$avai lwid th,$availheight)"; The error is: Parse error: parse error, unexpected T_VARIABLE in /www/htdocs/rolfvand/thinkquest/browsercheck.php on line 46 [/snip] All of your values are not enclosed with single quotes - the first four are, last four aren't
I don't know if that's his issue. He's double quoted the whole string, so php should include the single quotes in the $mysql_query string. OP, post some more code...lines 1-46 maybe? -- By-Tor.com It's all about the Rush http://www.by-tor.com

« previous php.general (#177984) next »