-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.php
31 lines (30 loc) · 912 Bytes
/
table.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
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>tableau</title>
</head>
<body>
<table width="100%" cellspacing="0">
<thead>
<tr>
<th>titre</th>
<th>prix</th>
</tr>
</thead>
<tbody>
<?php
$link1 = mysqli_connect("192.168.56.102","wiam","Wiam@2000","app") or die
("Error " . mysqli_error($link1));
$sql = mysqli_query ($link1,"select * from books ");
while($row = mysqli_fetch_array($sql) ) {
$titre=$row['title'];
$prix=$row['price'];
?>
<tr>
<td><?php echo $titre;?></td>
<td><?php echo $prix;?></td>
</tr>
</table>
</tbody>
</body>
</html>