RE: [PHP] Parse Error
| From: | Jay Blanchard | Date: | Tue, 17 Feb 2004 17:06:26 +0000 |
| Subject: | RE: [PHP] Parse Error | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-177979@lists.php.net to get a copy of this message | ||
[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