RE: [PHP] Parse Error(Newbie)
| From: | Peter | Date: | Mon, 27 May 2002 05:57:02 +0000 |
| Subject: | RE: [PHP] Parse Error(Newbie) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99332@lists.php.net to get a copy of this message | ||
can you show us the lines above that line? say the previous 2 lines?.. also
depending on what server your on you might want to try
$query = "SELECT * FROM news WHERE id = "$_get['id']"";
but that line is ok ... with parse errors it's often, well i've found this
any way, that it's the line above the line the message says it is..
-----Original Message-----
From: webmaster@tececo.com [mailto:webmaster@tececo.com]
Sent: Monday, 27 May 2002 3:47 PM
To: php-general@lists.php.net
Subject: [PHP] Parse Error(Newbie)
I know it is probably something obvious but the following gives me a parse
error and as a newbie I am having trouble locating it.
$query = "select * from news WHERE id = "$_get['id']"";
JJ Harrison
webmaster@tececo.com
www.tececo.com