0
我有這個PHP頁面重定向到index.php時,其他頁面已被訪問
的index.php
<?php
include 'viewannouncement.php';
?>
viewannouncement.php
<?php
$result = mysql_query("SELECT announcement_date,announcement_title,
announcement_text FROM sp_announcement") or die(mysql_error());
echo "<table id=\"newspaper-b\">";
echo "<thead>";
echo "<tr>";
echo "<th scope=\"col\">Date</th>";
echo "<th scope=\"col\">Title</th>";
echo "<th scope=\"col\">Announcement</th>";
echo "</tr>";
echo "</thead>";
while($row = mysql_fetch_array($result)) {
echo "<tr>";
echo '<td>' . $row['announcement_date'] . '</td>';
echo '<td>' . $row['announcement_title'] . '</td>';
echo '<td>' . $row['announcement_text'] . '</td>';
echo "</tr>";
}
echo "</table>";
echo "<br>";
echo "<br>";
?>
中的index.php它有一個其中包括和viewannouncement.php的意見,問題是當我手動訪問子頁面它留下白色屏幕,我怎麼能重定向到index.php,仍然可以通過index.php中的選項卡查看
我希望你們能幫助我,任何幫助是極大的讚賞
你能更具體嗎? –
@BhavinRana我認爲它是一個新手問題,但具體而言,我只是不希望我的子頁面被手動訪問。 –