-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.php
More file actions
76 lines (73 loc) · 1.64 KB
/
4.php
File metadata and controls
76 lines (73 loc) · 1.64 KB
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
69
70
71
72
73
74
75
76
<html>
<body>
<body style="background:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.3)),url(images/4.jpg); background-repeat:no-repeat; background-size:cover;">
<style type="text/css">
table{
border-collapse:collaspe;
color:white;
font-family:monospace;
font-size:20px;
text-align: left;
margin: 3 auto;
display: table-cell;
vertical-align: middle;
height: 16%;
width: 85%;
display: table;
}
th {
background-color:#588c;
color:white;
}
button{
padding: 5px;
border-radius: 5px;
margin: 2px;
display: block;
width: 80px;
border: 2px;
background-color: white;
color: blue;
font-family: sans-serif;
text-align: center;
}
th {
background-color:#588c7e;
color:white;
}
.data{
background-color:white;
color:black;
}
button{
border: .5px solid black;
background-color: orange;
color: white;
}
</style>
<form action="3.php" method="GET">
<table>
<tr>
<th> Owner ID </th>
<th> Name </th>
<th> Address </th>
<th> Phone no </th>
<th> Sex </th>
<th> Vehicle no </th>
</tr>
<?php
$cn=new mysqli("localhost","root","","owner") or die("Connection failed");
$result=$cn->query("SELECT * FROM OWNER");
//echo var_dump($result);
while($row=$result->fetch_array()){
$name=$row[0];
echo '<tr><td>'.$row["ownid"] ."</td><td>" .$row["ownname"] ."</td><td>" .$row["ownadd"] ."</td><td>" .$row["ownphno"] ."</td><td>" .$row["sex"] ."</td><td>" .$row["vehno"].'</td><td><button name="delname" type="submit" value="'.$row["ownid"].'">Delete</button></td></tr>';
}
?>
<center>
<td><button><a href="admin.html">Back</a></button>
</center>
</table>
</form>
</body>
</html>