0

我使用 jQuery mobile 生成我的表单并在我的 PHP 应用程序中使用它。但是,它没有输出我的回声消息。当我检查生成的 HTML 时,它显示以下内容:

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
            </body>
</html>
Invalid question ID

我检查了 jQuery 移动文档,他们要求我这样做:data-ajax="false"但是,它不起作用。问题是什么?为什么它不输出我的 PHP 消息?

更新:

PHP 代码

$sql = "SELECT active FROM questions where question_id='$qid'";
$result = mysql_query($sql);
$row = mysql_fetch_row($result);
$active = $row[0];
if ($active != 1) {
    die('Invalid question ID');
}
4

0 回答 0