Hello ,

Can someone tell me what is wrong with the following querys ? I am pretty sure its got something to do with the quotes around $_POST[] variables.

$sql1 = "SELECT * from `admin` where `admin`.user = '"$_POST['validuser']"' AND `admin`.pwd = '"$_POST['password']"'";

$sql1 = "SELECT * from `admin` where user = "$_POST['validuser']" AND pwd = "$_POST['pass']"";


Thanks in advance,

--Pushpinder


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to