if($_SERVER['REQUEST_METHOD']=='POST'){
//this is my database
include 'db.php';
$con = mysqli_connect($servername,$username,$password,$dbname);
//inputs
$email = $_POST['email'];
$password = $_POST['password'];
$phone = $_POST['phone'];
//checking query
$Sql_Query = "select * from user_info where email = '$email' and password = '$password' and phone = '$phone' ";
$check = mysqli_fetch_array(mysqli_query($con,$Sql_Query));
if(isset($check)){
echo "Data Matched";
}
else{
echo "Invalid combination of Username or Phone and Password ! Please Try Again";
}
}else{
echo "Check Again";
}
//closing
mysqli_close($con);
what is the error, please help me out I’m stuck
2
Answers
Please set the root path to include.
Your issue may be resolved.
If the issue is only on server , the following might help you:
echo 123;exit;
, and find where the code breaks..Hope this helps you.