include_once "connect_to_mysql.php";
$query = mysql_query("SELECT * FROM data WHERE Email = '$email'");
$num = array();
//Caculate the number of rows that have macthing username
$numrows = mysql_num_rows($query);
$num[] = $numrows;
if ($num != 0){
$data = array('success' => 'true', 'message' => 'Incorrect Email');
echo json_encode($data);
}
if 语句没有被处理并且没有 JSON 数据被回显,而是脚本冻结。
我究竟做错了什么?