Bonjours,
Voila j'esaye de faire un tableaux avec les donnée de la base de donnée (username, password email). Et quand je fais un foreach rien ce passe. Pouriais vous m'aider ?
Voici un screen du tableaux :
Voici mon code :
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
<thead>
<tr>
<th><b> ID </b></th>
<th><b> Username :</b></th>
<th><b> Password</b></th>
<th><b>Email</b></th>
<th><b> Supprimer </b></th>
</tr>
</thead>
<tr>
<?php
foreach($req as $row):
?>
<td> <?php echo $row->id; ?> </td>
<td> '' </td>
<td> '.' </td>
<td> '' </td>
<td> '' </td>
<td> <a href="addkey.php?action=delete&id='.htmlspecialchars($row->id).'">OK</a> </td>
<?php endforeach;?>
</tr>
</table>
$req = $db->query("SELECT * FROM licence ")->fetchAll();
Ma requete et fait comme ceci :
Salut il y a un tuto pour la pagination sur ce lien si tu veux => https://www.primfx.com/article/tuto-php-systeme-pagination-182
C'est bon j'ai trouvé . Sauf que sa s'affiche en hauteur voir screen aurais tu un tutoriel de pagination en utilisant PDO