Re: Parse Error(Newbie)
| From: | David Robley | Date: | Mon, 27 May 2002 06:00:14 +0000 |
| Subject: | Re: Parse Error(Newbie) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99333@lists.php.net to get a copy of this message | ||
In article <003601c20541$fdc31970$0100a8c0@JohnH>, webmaster@tececo.com
says...
> 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
>
$query = "select * from news WHERE id = " .$_get['id'];
--
David Robley
Temporary Kiwi!
Quod subigo farinam