3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mysql_connect(localhost,sunrise_sunrise,Xtrem6fTy)or die("cannot connect"); mysql_select_db(sunrise_triessorg)or die("cannot select DB"); // username and password sent from form $mroster=$_POST['mroster']; $mpass_word=$_POST['mpass_word']; // To protect MySQL injection (more detail about MySQL injection) $mroster = stripslashes($mroster); $mpass_word = stripslashes($mpass_word); $mroster = mysql_real_escape_string($mroster); $mpass_word = mysql_real_escape_string($mpass_word); $sql="SELECT * FROM mem_auth WHERE roster='$mroster' and pass_word='$mpass_word'"; $result=mysql_query($sql); // Mysql_num_row is counting table row $count=mysql_num_rows($result); // If result matched $myusername and $mypassword, table row must be 1 row if($count==1){ echo "$count"; echo "$mroster"; // Register $myusername, $mypassword and redirect to file "login_success.php" //session_register("mroster"); //session_register("mpass_word"); ?>
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected end of file in /in/WRoXB on line 28
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/WRoXB on line 28
Process exited with code 255.