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 データはエコーされず、スクリプトはフリーズします。
私は何を間違っていますか?