我有一個彈出形式從用戶獲得數據並將其添加到MySQL的phpMyAdmin的表,我希望能夠以一個HTML表格一旦彈出關閉中顯示這個數據,在我點擊提交後,我被引導回主頁,在那裏我想讓數據顯示在桌面上。顯示MySQL數據與HTML表格
M.html
<thead>
<tr>
<th scope="col" colspan="2">CRN</th>
<th scope="col" colspan="6">Title</th>
<th scope="col" rowspan="2">Co-Ordinator</th>
<th scope="col" colspan="6">Coursework Number</th>
<th scope="col" rowspan="2">Contribution</th>
<th scope="col" colspan="6">Edit</th>
<th scope="col" rowspan="2">Upload</th>
<th scope="col" colspan="6">Manage Grades</th>
</tr>
</table>
add.php
$display_query = "SELECT CRN, Title, Co-Ordinator, CourseworkNumber, Contribution FROM Modules";
$displayresult = mysqli_query($con, $display_query);
$num = mysql_numrows($displayresult);
mysqli_close($con);
header("Location: ../views/M.html");
我新的HTML和PHP不確定如何鏈接這到HTML
有啥問題只是選擇另一頁上的數據和顯示或發送JSON http://stackoverflow.com/a/19027741/3841803 – silentprogrammer 2015-02-09 19:14:14