-
Notifications
You must be signed in to change notification settings - Fork 0
/
modifier.php
35 lines (25 loc) · 1.26 KB
/
modifier.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="mod.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body background="a.jpg">
<div class="header">
<center><p>PORTABLE ECG MONITORING</p></center>
</div>
<?php
include('connexion.php');
$sql="SELECT * from person";
$result = $db->query($sql);
if ($result->num_rows > 0) {
echo "<center><h2>Résultat :</h2><br><form method='POST' action='mod.php'><table>";
while($row = $result->fetch_assoc()) {
echo "<tr><th>ID</th><th>Nom</th><th>Prenom</th><th>DateN</th><th>sexe</th><th>Email</th><th>num</th><th>adr</th><th>dataset</th><th>Selection</th></tr>";
echo "<tr><td>" . $row['ID'] . "</td><td>" . $row['Nom'] . "</td><td>" . $row["Prenom"] . "</td><td>" . $row["DateN"] . "</td><td>" . $row["sexe"] . "</td><td>" . $row["email"] . "</td><td>" . $row["num"] . "</td><td>" . $row["adr"] . "</td><td>" . $row["dataset"] . "</td><td><input type='radio' name='person' value='" . $row['ID'] . "'></td></tr>";
}
echo "</table><input class='btn btn--radius-2 btn--blue' type='submit' value='Modifier' name='button1' ></form></center>";
} else {echo "<p style='color:white;'>0 results</p>";}
?>
</body>
</html>