MySQL Query
| From: | Pushpinder Singh Garcha | Date: | Mon, 30 Jun 2003 18:10:06 +0000 |
| Subject: | MySQL Query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153451@lists.php.net to get a copy of this message | ||
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