-
Notifications
You must be signed in to change notification settings - Fork 0
/
affichage.php
53 lines (44 loc) · 1.01 KB
/
affichage.php
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
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<title>Lister Les elements de la base de donnée</title>
<META charset="utf-8"/>
</head>
<body>
<?php
try{
require('connection.php');
$requete = $con->query("SELECT * from personne");
?>
<table>
<tr>
<td colspan="6" id="entete">Listes des clients</td>
</tr>
<p><tr>
<th>ID</th>
<th>NOM</th>
<th>PRENOM</th>
<th>ADRESSE</th>
</tr>
</p>
<?php
while($resultat = $requete->fetch()){
?>
<tr>
<p> <td><?php echo $resultat['ID']; ?></td>
<td><?php echo $resultat['NOM']; ?></td>
<td><?php echo $resultat['PRENOM']; ?></td>
<td><?php echo $resultat['ADRESSE']; ?></td>
</p>
</tr>
<?php
}
?>
</table>
<?php
}catch(PDOException $e){
die('Erreur!!!'.$e->getMessage());
}
?>
</body>
</html>