RE: Php with mysql

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux