On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote:

Hello everybody,

I want to authenticate my user from web with PHP
script. The user's passwords are stored in System as
MD5 format (in /etc/shadow).

Can anybody help me?

Which part do you want help with?


The form?
The SQl query?
The whole lot?

My guess is the query

$sql = "
        SELECT id
        FROM users
        WHERE username='.$_POST['username']}'
        AND password='".md5($_GET['password'])."'";

It (MD5) can also be done directly in the query as a MySQL function.


Justin


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



Reply via email to