-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.php
64 lines (59 loc) · 1.21 KB
/
show.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
58
59
60
61
62
63
64
<?php include'header.php';?>
<html>
<br>
<head>
<center>
<style>
body {
background-image: url('b.jpg');
background-size: cover;
}
table{ width: 800px;
margin:auto;
text-align:center;
margin-top:10px;
color: #ffff; }
table,th,td{
border:3px solid gray;
border-collapse:collapse;
padding:15px;
font-size:15px;
}
</style>
</head>
<body>
<h7 style="color:White;">Edit Student Informetion.</h7>
<table>
<tr>
<th>Id</th>
<th>Name</th>
<th>Department</th>
<th>Area</th>
<th>Delete</th>
<th>Update</th>
</tr>
<?php
//connection
$con = mysqli_connect('127.0.0.1','root','');
//databas
mysqli_select_db($con,'std');
//select
$sql = " select * from tb_std";
//execute
$records=mysqli_query($con,$sql);
while($row=mysqli_fetch_array($records))
{
echo"<tr>";
echo"<td>".$row['id']."</td>";
echo"<td>".$row['name']."</td>";
echo"<td>".$row['dep']."</td>";
echo"<td>".$row['area']."</td>";
echo "<td><a href=delete.php?id=".$row['id'].">Delete</a></td>";
echo "<td><a href=up.php?id=".$row['id'].">Update</a></td>";
}
?>
</table>
</center>
</body>
</html>
<?php include'footer.php';?>