我有一个使用jQuery Mobile的网站。当我在本地测试该站点时,一切正常,但是当我在服务器上运行该站点时,某些页面将无法加载,出现“错误加载页面”。我收到错误500。这是我用来调用页面的代码。
<form action="index.php">
<input type="submit" value="Continue" />
</form>
这是标题
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hondensectie</title>
<link rel="stylesheet" href="themes/themerollertest.min.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile.structure-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link type="text/css" rel="stylesheet" href="css/style.css"/>
</head>
索引页如下:
<body>
<?php
session_start();
if ($_SESSION["rol"] != 'user') {
header("Location:noperms.php");
}
include('config.php');
include('config.js');
?>
<div data-role="page" data-theme="a">
<div data-role="header" style="overflow:hidden;" data-position="fixed">
<h1>Menu</h1>
<a href="loggedoff.php" class="ui-btn ui-corner-all ui-shadow ui-btn-icon-left ui-icon-power">Log uit</a>
</div>
<div data-role="footer">
<div data-role="navbar">
<ul>
<li><a href="decdprofileedit.php" data-icon="user">Profielen</a></li>
<li><a href="bestanddecd.php" data-icon="map">Bestanden</a></li>
<li><a href="decdhondedit.php" data-icon="dog">Honden</a></li>
<li><a href="decddiplomaedit.php" data-icon="edit">Opleidingen</a></li>
<li><a href="decdwerkervaringedit.php" data-icon="doc">Werkervaringen</a></li>
<li><a href="decdlijst.php" data-icon="bars">Groot overzicht</a></li>
<li><a href="decdbasis.php" data-icon="location">Basissen</a></li>
<li><a href="decdstof.php" data-icon="stof">Stoffen</a></li>
<li><a href="pdfmaker.php" data-icon="tag">PDF download</a></li>
<li><a href="decdhandleiding.php" data-icon="info">Handleiding</a></li>
<!-- menu knoppen trainer-->
</ul>
</div><!-- /navbar -->
</div><!-- /footer -->
</div>
<?php
$query = "SELECT * FROM stoftesten WHERE datum <= now() - interval 3 month ORDER BY datum";
$stm = $con->prepare($query);
$stm->execute();
$result = $stm->fetchAll(PDO::FETCH_OBJ);
foreach ($result as $pers) {
$ssid = $pers->stofid;
$id = $pers->id;
$query = "DELETE FROM stoftesten WHERE id = '$id';";
$stm = $con->prepare($query);
$stm->execute();
}
?>
</body>
我收到xhr错误