RE: [PHP] Select and $_POST

From: Date: Wed, 09 Nov 2005 23:59:28 +0000
Subject: RE: [PHP] Select and $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-225477@lists.php.net to get a copy of this message
$query = "SELECT * FROM login WHERE username = '".$_POST['username']."' AND pass = '". $_POST['pass']."'"; > What is the correct syntax for > > $query = "SELECT * FROM login where > username='$_POST['username']' AND pass > ='$_POST['pass']'"; > > > Thought this would work. > > R. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#225477) next »