if($_SERVER['REQUEST_METHOD']=='POST'){
//这是我的数据库
include 'db.php';
$con = mysqli_connect($servername,$username,$password,$dbname);
//输入
$email = $_POST['email'];
$password = $_POST['password'];
$phone = $_POST['phone'];
//检查查询
$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";
}
//结束
mysqli_close($con);
什么是错误,请帮我解决问题
答案 0 :(得分:0)
请设置要包含的根路径。
<?php include('db.php'); ?>
您的问题可能已解决。
答案 1 :(得分:0)
如果问题仅在服务器上,则以下内容可能会对您有所帮助:
echo 123;exit;
进行调试,并找到代码中断的地方。希望这对您有所帮助。