I have a problem. I need help to traverse a while and take the value of an array that is full of data from a database. I need to take some value and send the data of that arrangement to another page.
I leave my code here:
<?php while($row = $execute->fetch_assoc()){ ?>
<tbody>
<form class="" action="promotor registro general detalles.php" method="post">
<tr>
<td> <?php echo $row['fecha']; ?></td>
<td> <?php echo $row['entrada']; ?></td>
<td> <?php echo $row['salida']; ?></td>
<td> <input type="submit" name="detalles" value="Detalles"></td>
</tr>
</form>
</tbody>
<?php } ?>
What I specifically need is to know how, by clicking on the details button, the record of that button is taken.
I have an idea to use the $ _SESSION
, but I do not know how to give it the specific value of that record.
I hope I have been specific.