i want that as my program prints all the records from tthe table in columns i want a checkbox in front of every row so that if a user want to delete that particular row then he can click on that checkbox. how can i do this.......Here is the snippet.
<?php
$conn=mysqli_connect("localhost","","","test");
echo"connected";
$query="SELECT * FROM student ORDER BY roll_no";
$res=mysqli_query($conn,$query);
$row=(mysqli_fetch_array($res,MYSQLI_ASSOC));
echo "roll_no".$row['roll_no'];
echo "subject".$row['subject'];
echo "marks".$row['marks']."<br/>";
echo "<table border='1'>";
echo "<tr>
<th>ROLL_NO</th>
<th>SUBJECT</th>
<th>MARKS</th>
</tr>";
while($row = mysqli_fetch_array($res,MYSQL_ASSOC)){
echo"<tr><td>";
echo $row['roll_no'];
echo "</td><td>";
echo $row['subject'];
echo "</td><td>";
echo $row['marks'];
echo "</td></td>";
//echo "<td><input type="checkbox"></td>"
//echo "</td></tr>"
}
echo "</table>";
?>