this is my checkuser.php page! I have a login.php page which has a textbox with username and password fields on it. Is this correct?
let me know if it has any problemsPHP Code:<?PHP
mysql_connect (localhost, username, password);
mysql_select_db (Table);
$result = mysql_query ("select username, password, access_level from Members where username = $username");
if(($username==$mysql_username) && $password ==$mysql_password) {
setcookie("access_level",$mysql_access_level,time() + 3600);
header("Location: page.php"); }
else { header("Location: login.php"); }




Reply With Quote