Member Area

and your email address is .

real_escape_string($_POST['username']); $password = md5($conn->real_escape_string($_POST['password'])); $query = "SELECT * FROM users WHERE Username = '".$username."' AND Password ='".$password."'"; $result = $conn->query($query); if (! $result) echo "

Error in database query

"; if($result ->num_rows == 1) { $row = $ result ->fetch_assoc(); $email = $row['EmailAddress']; $_SESSION['Username'] = $username; $_SESSION['EmailAddress'] = $email; $_SESSION['LoggedIn'] = 1; echo "

Success

"; echo "

We are now redirecting you to the member area.

"; echo ""; } else { echo "

Error

"; echo "

Sorry, your account could not be found. Please click here to try again.

"; } } else { ?>

Member Login

Thanks for visiting! Please either login below, or click here to register.