SourceForge Logo
1.1.3: user_check


Description
Check if the username/password combination is valid by querying the database. This is a very often used function. It's called by almost every other database relative function to check if a certain operation may be performed. So it's very important.

Function call
user_check($username, $md5passwd);

Input
ParameterDescription
$usernameThe username of the user which have to be checked.
$md5passwdThe user's password, encrypted with md5.


Output
Whe output is a single var, which indicates if the action succeded or not.

VarDescription
$statusIf set to "0" everything's fine. If set to "1" the username/password combination is invalid.

« Previous | Index | Next »