如果我从页面中注释掉以下代码,则可以正常工作。 但是,如果输入了代码,进程就会停滞,站点速度变慢,我会收到500台服务器错误。
如果有人单击系列数据表,它将加载情节。 如果选择一个情节并单击它,则会加载在线链接并向下滚动
<a name="online"></a>
<br><h4 id="b" style="padding-left: 15px;">Episodes:</h4>
<div class="blog-pagenat-wthree">
<ul>
<?php
$query = "SELECT episode FROM episodes WHERE seriesid = ? ORDER BY episode LIMIT 1";
$stmt = $conn->prepare($query);
$stmt->bind_param('i', $id);
$stmt->execute();
$stmt->bind_result($firstepisode);
$stmt->fetch();
$stmt->close();
$query = "SELECT episode FROM episodes WHERE seriesid = ?";
$stmt = $conn->prepare($query);
$stmt->bind_param('i', $id);
$stmt->execute();
$stmt->store_result();
$allepisode = $stmt->num_rows;
$stmt->close();
$title2 = str_replace(array("'"), array("\'"), $title);
$title3 = sanitize($title2);
$season = explode(". season", $title2);
$season2 = explode(" - ", $season[0]);
for($i=$firstepisode; $i<=$allepisode; $i++)
{
echo "<li><a href='mysite/".$id."/".$title3."-series/".$i."-episode#online'>".$i."</a></li> ";
}
?>
</ul>
</div>
我试图仅注释掉加载链接的代码,但是我认为这部分情况会卡住进程。