Re: User Authentication
| From: | Peter Beckman | Date: | Fri, 27 Feb 2004 14:32:07 +0000 |
| Subject: | Re: User Authentication | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33185@lists.php.net to get a copy of this message | ||
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@purplecow.com http://www.purplecow.com/
---------------------------------------------------------------------------