Correction Tp3

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

2) <?

php

include("dbconnection.php") ;
?>

3) <table class="table table-striped table-bordered table-hover" id="dataTables-


example">
<thead>
<tr>
<th>ID</th>
<th>Nom</th>
<th>Prènom</th>
<th>Tel </th>
<th>E_mail</th>
<th>Spécialité</th>
<th>Action</th>

</tr>
</thead>
<tbody>
<?php
$qry="select * from patient";
$result=mysqli_query($con,$qry);
while ( $row = mysqli_fetch_assoc($result)) {
echo '<tr>';
echo '<td>'. $row['id'].'</td>';
echo '<td>'. $row['nom'].'</td>';
echo '<td>'. $row['prenom'].'</td>';
echo '<td>'. $row['date_naissance'].'</td>';

echo '</tr> ';


}
?>
</tbody>
</table>

You might also like