I decided to start all over again for my php based login prompt. the only problem I have now is that even with the right username and password entered, it says that the login failed. this is the code:
<?php
$db_name = "novazro";
$connect = mysql_connect('localhost','name removed','password removed');
$db = mysql_select_db($db_name,$connect);
?>
<head><title>Administrator Control Panel</title></head>
<body>
<?php
$query1 = mysql_query("SELECT password FROM adminlogin WHERE username = '$user'", $connect);
while ($row = mysql_fetch_row($query1));{
echo mysql_error();
$password_check = $row['password'];
}
if ($password === $password_check) {
echo "Logged-in";
}
else {
echo "Login Failed";
}
?>
</body>
you can see it in 'action' here: http://novaz3ro.com/admin
login: beta
password: testing
any tips on what to change shall be greatly appreciated ;-)
thanx