Re: Re: Difference between $_POST[foo] and $_POST['foo']?

From: Date: Tue, 17 Jun 2003 14:19:24 +0000
Subject: Re: Re: Difference between $_POST[foo] and $_POST['foo']?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-151833@lists.php.net to get a copy of this message
$sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';'; Like that? On Tue, 2003-06-17 at 10:09, nabil wrote: > A side question along with this ,,, how can I include $_POST['foo'] in the > : > $sql ="select * from db where apple = '$_POST['foo']' "; > > without getting an error ?? > should I append it as $var= $_POST['foo']; before??? > > Thnx Nabil > > > "Jarmo Jrvenp" <Jarmo.Jarvenpaa@softers.net> wrote in message > news:3EEECCAA.2F831883@softers.net... > > Hi > > > > A quickie, how does the $_POST[foo] and $_POST['foo'] differ? > > Both do work. > > > > > > BR, > > Jarmo -- Adam Voigt (adam@cryptocomm.com) Linux/Unix Network Administrator The Cryptocomm Group

« previous php.general (#151833) next »