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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]