I need your help with my homework: I'm setting up a project which generates a pdf certificate for a list of student stored on a MySQL database. For the pdf generator, I used fpdf and I have any problem with that. But for the interface I displayed the data on a table and added a button on each row to print data on the pdf.
so what I want is that, when the user click on the button 'print' each data in this row is stored on a variable that I can reuse on the script that provide the pdf.
while($res = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>".$res['ID']."</td>";
echo "<td>".$res['Name']."</td>";
echo "<td>".$res['Parcours']."</td>";
echo "<td>".$res['Appreciation']."</td>";
echo "<td>".$res['SingDate']."</td>";
echo "<td><input type='submit' id='print' class='btn btn-outline-info waves-effect' value='Print'/></td>";
}