I know that MySQL is depreciated but I am working on a very old code. Once its fixed I will Switch it to mysqli.
I have numbers of user, when I click on edit button for that particular user it will take me to another page where it will show me the courses/topics user is assigned. If they have completed that topic it will show complete and if not there will be date field and button to update it to complete. When I like on the button to button it for one topic it will update it to complete to all the other topic for that user.
I tried to change the value of button to learnID to CoureID but it doesn't work. Remove if from the loop but still no luck
while ($row = mysql_fetch_array($result) ) {
$firstName = $row["a01FirstName"];
$lastName = $row["a01LastName"];
if (isset($_POST['scomp']) && intval($_POST['scomp'])) {
stmt
}
}