Re: Parse Error(Newbie)

From: Date: Tue, 28 May 2002 03:20:59 +0000
Subject: Re: Parse Error(Newbie)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99430@lists.php.net to get a copy of this message
try this: $query = "select * from news WHERE id = '$_get['id']'"; the double quote right before the $ is ending the string, from that point on everything is an error. Matt On Mon, 27 May 2002 webmaster@tececo.com wrote: > 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 >

« previous php.general (#99430) next »