-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdisplay.php
48 lines (40 loc) · 846 Bytes
/
display.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
#author krishna kakade krishnakakadegithub.io
<style >
td{
padding: 10px;
}
</style>
<?php
include("connection.php");
error_reporting(0);
$query="SELECT *FROM shoe";
$data=mysqli_query($conn,$query);
$total=mysqli_num_rows($data);
if($total!=0)
{
?>
<table>
<tr>
<th>Shoe company</th>
<th>Shoe size</th>
<th>Shoe colour</th>
<th colspan='2'>Operations</th>
</tr>
<?php
while($result=mysqli_fetch_assoc($data))
{
echo "<tr>
<td>". $result['shoe']."</td>
<td>".$result['shoe_size']."</td>
<td>".$result['shoe_color']."</td>
<td><a href='update.php?s=$result[shoe]&s_size=$result[shoe_size]&s_color=$result[shoe_color]'>Edit</a></td>
<td><a href='delete.php?$result[shoe]'>DElETE</a></td>
</tr>";
}
}
else
{
echo "No record found";
}
?>
</table>