alert('wrong password')"; $vuname=mysqli_real_escape_string($myconn,trim($_POST['txtuname'])); $vupass=mysqli_real_escape_string($myconn,trim(md5($_POST['txtupass']))); $qryuser=$myconn->query("select * from user where uname='$vuname' and upass='$vupass'")or die(mysqli_error($myconn)); $chkuser=mysqli_num_rows($qryuser); if($chkuser){ header('location:index1.php'); }else{ } } ?>