Re: User Authentication

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

 



Try fixing your SQL:

$result = ("select user_id, password FROM users WHERE username='$username'...

You forgot a comma between user_id and password.

On Fri, 27 Feb 2004, Craig Hoffman wrote:

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

---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman@xxxxxxxxxxxxx                             http://www.purplecow.com/
---------------------------------------------------------------------------

-- 
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