[snip]
$sql = "SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name`
= '$_POST['user_id']' AND  '$_POST['user_id']' ";
[/snip]

echo $sql; //to see the query and check the syntax

$sql = "SELECT `User_name` AND `User_pass` FROM `user` WHERE `User_name`
= '" . $_POST['user_id'] . "' AND  '" . $_POST['user_id'] . "' ";

Your variables may not be parsed due to the single quotes.

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

Reply via email to