Hi everybody!
I am pretty new to my sql and I am very confused because I would like to delete a specific row I know you will tell me that I just need to get its id but the thing is there all similar rows with delete buttons that look like this and that I get from the database (result contains the retrieved data)
`<form name = "students" id = "students" action= "modify_course.php" method = "post">
<div class="my_student">
<p><label for="studentfirstname">studentfirstname: </label><input type = "text" name = "studentfirstname" id = "firstname" value = "<?echo result['studentfirstname']?>" size = "10"/></p>
<p><label for="studentlastname">studentlastname: </label><input type = "text" name = "studentlastname" id = "lastname" value = "<?echo result['studentlastname']?>" size = "10"/></p>
<p><label for="studentage">studentage: </label><input type = "text" name = "studentage" id = "age" value = "<?echo result['studentage']?>" size = "10"/></p>
<input type = "submit" name = "Delete" class = "Delete" value = "Delete this student"/>
</div>
<input type = "submit" name = "modify" value = "Modify a student">
</form>`
I would like to delete one student using the delete button both from the form and from the database. For the form I will use jquery to remove the containing div but how do I delete a particular row since they are all the same from the database? please I need help.