Re: User Authentication

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

 



Craig Hoffman wrote:

$result = ("select user_id password FROM users WHERE username='$username' AND password=md5('$password')");

password is a reserved word. try this instead:


$result = ("select user_id password FROM users WHERE username='$username' AND `password`=md5('$password')");


Erwin Kerk Web Developer

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux