Re: Parse Error
| From: | BAO RuiXian | Date: | Tue, 17 Feb 2004 17:28:02 +0000 |
| Subject: | Re: Parse Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177983@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 think the values should not be included inside single quotes, at least it is true for Perl, when the real values would not be assigne to.Best Bao