1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
<?php
{
$bdd= new PDO('mysql:host=localhost;dbname=tuto','root','root');
}
$reponse = $bdd->query('SELECT * FROM user ');
while ($donnees = $reponse ->fetch())
{
?>
<tr>
<td><input type="checkbox" /></td>
<td><?php echo $donnees['id']; ?></td>
<td><a href="#"><?php echo $donnees['login']; ?></a></td>
<td><a href="#"><?php echo $donnees['pass']; ?></a> , <a href="#"></a></td>
<td><a href="#"><?php echo $donnees['role']; ?></td>
<td>35</td>
<td class="actions"> <a href="del.php?id= <?php echo $donnees['id']?>" <title="Delete this content"><img src="img/icons/actions/delete.png" alt="" /></a></td>
<?php
}
$reponse->closeCursor();
?>
</tr>
</tbody>
</table>
<div class="left input">
<select name="action" id="tableaction">
<option value="">Action</option>
<option value="delete">Supprimer</option>
<option value="delete">resuturer</option>
</select>
</div>
<div class="pagination">
<a href="#" class="prev">«</a>
<a href="#">1</a>
<a href="#" class="current">2</a>
...
<a href="#">21</a>
<a href="#">22</a>
<a href="#" class="next">»</a>
</div> |