Re: quick question

From: Date: Fri, 11 Jan 2002 00:41:15 +0000
Subject: Re: quick question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80141@lists.php.net to get a copy of this message
On Thu, 10 Jan 2002, Erik Price wrote: > I thought that $_GET[] and $_POST[] could be used in place of regular > variables... that is, > > $sql = "SELECT * FROM tablename WHERE > tablename.column=$_GET['criteria_integer']"; > > but unfortunately, this isn't working. $sql = "SELECT * FROM tablename WHERE tablename.column=".$_GET['criteria_integer']; Or use {}'s properly if you insist on putting the variable inside the quotes. Easier just to pop out and append it though. -Rasmus

« previous php.general (#80141) next »