-
Notifications
You must be signed in to change notification settings - Fork 0
/
listetu.php
57 lines (54 loc) · 1.32 KB
/
listetu.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
54
55
56
57
<?php
include ("connexionpod.php");
?>
<?php
include ("index.php");
?>
<link rel="stylesheet" href="bootstrap.min.css">
<link rel="stylesheet" href="essa.css"/>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Prénom</th>
<th>Login</th>
<th>Password</th>
<th>Adresse</th>
<th>Tel</th>
<th>CODE</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
try
{
$connexion = new PDO('mysql:host=localhost;dbname=plategesedu', 'root', '');
$requete="select * from etudiant";
$resultat=$connexion->query($requete);
foreach ($resultat as $row)
{
?>
<tr>
<td><?php echo $row['ID'] ; ?></td>
<td><?php echo $row['NOM'] ; ?></td>
<td><?php echo $row['PRENOM'] ; ?></td>
<td><?php echo $row['LOGIN'] ; ?></td>
<td><?php echo $row['PASSWORD'] ; ?></td>
<td><?php echo $row['ADRESSE'] ; ?></td>
<td><?php echo $row['TEL'] ; ?></td>
<td><?php echo $row['code'] ; ?></td>
<td>
<a href="http://localhost:80/plategesedu/modifier.php?id=<?php echo $row['Nom'] ; ?>">
<span class="glyphicon glyphicon-pencil"></span> Modifier
</a></td>
</tr>
<?php
}
}catch (Exception $e){
die('Erreur : ' . $e->getMessage());
}?>
</tbody>
</table>
</div>