<?php
$sql = "SELECT * FROM table";
$result = mysqli_query($conn, $sql);
?>
<div class="table-responsive">
<table id="myTable" class="table table-striped">
<tr>
<th>Nom</th>
<th>Email</th>
</tr>
<?php
if(mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_array($result)) {
?>
<tr>
<td><?php echo $row["nom"];?></td>
<td><?php echo $row["email"];?></td>
</tr>
<?php
}
}
?>
</table>
</div>
Si besoin ajouter une pagination.