Almost finished. Just struggeling with the list.php where if you click on a course it should display all the student. That I get right, but now to get them to be displayed as hyperlinks. I can get that right in a way, but then I get only half of my data displayed from the database.
My code like this gives me all my data without hyperlinks:
Language: PHP
while($selRow = mysql_fetch_array($result)){
echo "<tr>";
echo "<td>" . $selRow[';fname';] . " " . $selRow[';sname';]. "</td>";
echo "</tr>";
}
echo "</table>";
My code like this, gives me the hyperlinks, but half of my data is not displayed. Although if I hover the mouse cursor over the link, it displays the name of the missing data from the database.
Language: PHP
echo "<td>" . "<a href=';student_man.php?id=>" . $selRow[';fname';] . " " . $selRow[';sname';]. "</a></td>";
I tried following the example from the book, but can't quite make sense of how they get to send an id in the url. This is the part necessary where you click on the name hyperlink of the registered student and it should display the student details.