Re: mysql with php
| From: | eoghan | Date: | Fri, 20 May 2005 10:21:29 +0000 |
| Subject: | Re: mysql with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215639@lists.php.net to get a copy of this message | ||
$sql = "select User_name, User_pass from user where User_name = '$_POST[user_id]' and User_pass = '$_POST[user_pass]'";
assuming user_id isnt an int
Rittwick Banerjee wrote:
Hi friends, I am Rittwick Banerjee and i have made a mysql based user name and password program but I found that what ever I entered in the user name and password feild the php file dose not working. I set this code for user name and password $sql = " SELECTUser_nameANDUser_passFROMuserWHEREUser_name= '$_POST[user_id]' ANDUser_pass= '$_POST[user_pass]' " But this code dose not working properly. This code dosen't checking if the user name and password is correct or incorrect Please help me with some source code. Thank you.