You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
$query = "select * from Users where uid = '$uid' and password = '$pwd'";
$result = mysql_query($query) or die(mysql_error());
if(!$result)
{
die('A database error occured while checking your login details.');
}
if(mysql_num_rows($result) == 0)
{
unset($_SESSION['uid']);
unset($_SESSION['pwd']);
?>
<h1>Congratulations, you're wrong!</h1>
<p>You did not provide the correct login credentials. Try again by clicking <a href="<?$_SERVER['PHP_SELF']?>">here</a>. Or if you'd like to register click <a href="register.php">here</a>