Re: Parse Error
| From: | Bob Eldred | Date: | Thu, 19 Feb 2004 05:35:15 +0000 |
| Subject: | Re: Parse Error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178206@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Jay Blanchard" <jay.blanchard@niicommunications.com>
To: "Rolf van de Krol" <rolf@rolfvandekrol.nl>;
<php-general@lists.php.net>
Sent: Tuesday, February 17, 2004 9:06 AM
Subject: RE: [PHP] Parse Error
>
> 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
That's almost definitely not the issue. Worst case scenario with the
non-existent quotes is that MySQL will put bad information into the
database if it's expecting numbers there and gets a string, or the query
will fail if it's a string with whitespace. It ought to parse just
fine.
Personally, I bet there's something not too far above the posted lines
that's bad.
Although the soon-to-follow query will look odd.
"$result=mysql_query($mysql_query);"
Bob