$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" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi > > > > A quickie, how does the $_POST[foo] and $_POST['foo'] differ? > > Both do work. > > > > > > BR, > > Jarmo -- Adam Voigt ([EMAIL PROTECTED]) Linux/Unix Network Administrator The Cryptocomm Group -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php