-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelemp1.php
68 lines (58 loc) · 1.42 KB
/
delemp1.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
65
66
67
68
<!DOCTYPE Html>
<html>
<head>
<title>Deleted Records</title>
<style>
html, body
{
background:url("https://i.pinimg.com/564x/c4/8d/6c/c48d6c448f8e7b54cb95b08d6fe3063c.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
}
</style>
<style>
table,th,td {
border:1px solid black; }
a,h2{
color:black;
}
</style>
</head>
<body>
<form method="post">
<h2>Deleted Records</h2>
<?php
$conn=mysqli_connect("localhost","root","","demo");
if(!$conn){
die("connection failed");
}
$sql="CALL dispdel ";
$result=mysqli_query($conn,$sql);
echo"<table>";
if($result){
echo"<tr><th>ID</th><th>NAME</th><th>DOB</th><th>PHONE</th><th>EMAIL</th><th>SALARY</th><th>DESIGNATION</th></tr>";
while($row=mysqli_fetch_assoc($result)){
echo "<tr><td>".$row["E_ID"]." </td>" ;
echo "<td>".$row["E_NAME"]. "</td>";
echo "<td>".$row["DOB"]. "</td>";
echo "<td>" .$row["PHONE"]."</td>";
echo "<td>" .$row["EMAIL"]."</td>";
echo "<td>" .$row["SALARY"]."</td>";
echo "<td>".$row["DESIGNATION"]."</td></tr>" ;
}
}
else
{
echo "no rows";
}
echo "</table><br><br>";
?>
</form>
<form>
<div>
<a href ="index1.html">BACK</a>
</div>
</form>
</body>
</html>