Hi,
I retrieve all students from database with adding submit buttons along with them. For example; when i click on 3rd student’s submit button, it gives me information of last retrieved student. How can solve this problem? Note : All action is in same page.
Thanks
<?php
while ($myArray = mysql_fetch_array ($runSql, MYSQLI_ASSOC)) {
$id = $myArray['id'];
$name = $myArray['name'];
?>
<tr>
<td><?php echo $myArray['id']; ?></td>
<td><?php echo $myArray['name']; ?></td>
<td><input type="submit" name="seeButton" value="Details" ></td>
</tr>
<?php
}
?>