3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($user == "" || $pass == "") { echo "Please fill in all the information!"; } //Check to see if the username AND password MATCHES the username AND password in the DB else { $query = mysqli_query($con,"SELECT * FROM members WHERE username = '$user' and password = '$pass'") or die("Can not query DB."); $count = mysqli_num_rows($query); if ($count == 1) { $_SESSION['username']=$user; //Create a session for the user! header ("location: members.php"); } else{ echo "Username and Password DO NOT MATCH! TRY AGAIN!"; } }
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: user in /in/AtEjZ on line 2 Please fill in all the information!
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: user in /in/AtEjZ on line 2 Please fill in all the information!