Quote:
Originally Posted by latinguy
What I want to do is this.. in http://vac.dndweb.net/forum when someone tries to log in on top and click 'log in' the action page only looks for the username and password. If the query recordcount is 1 (meaning it was found) then you are successfuly logged in if not you get an error.
How can I do this??
|
I was thinking something like this:
function login($username,$password)
{
global $myDB;
$myquery = "SELECT username, password FROM forum_user WHERE (username = '$username') AND (password = '".md5($password)."')";
$myresult = $myDB->query($myquery);
... rest of coding here before it gets logged in ...
}
login($_POST['vb_login_username'],$_POST['vb_login_password']);
Don't know if that makes sense at all.
Hope you get what I want to do
Hugs,
Daniel