query($sql)){ die('There was an error running the query '); } if($result->num_rows > 0) { //create session for user $_SESSION['user'] = $_POST['username']; } else { $error_msg = "Wrong username or password"; } } ?>
Forgot Password?
Create New Account