mardi 13 juin 2017

How to add a Checkbox beside each row in table

How to make so a checkbox is added beside each row in a dynamic table? So if i get 5 result from databse i want to display 5 checkbox next to these results.

       <table border="2">
    <tr>
        <th>title</th>
    </tr>

        <?php

include 'database.php';

$valid_query = "SELECT * FROM agencies ";
$valid_result = mysqli_query($link, $valid_query);

while ($row = mysqli_fetch_array($valid_result)) {
    echo '<tr>';
    echo '<td>'.$row['title'].'</td>';
    echo '<tr>';
}

        ?>
        </table>




Aucun commentaire:

Enregistrer un commentaire