I have a pop-up form which gets data from a user and adds it into the MySQL phpmyadmin table, i want to be able to display this data within a html table once the popup closes, after i click submit i am directed back to the homepage, where I want the data to be displayed on the table.
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");
I am new to html and php unsure how I can link this to the html