-
Notifications
You must be signed in to change notification settings - Fork 0
/
adminP.php
executable file
·72 lines (67 loc) · 1.7 KB
/
adminP.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
69
70
71
72
<?php
session_start();
if(!isset($_SESSION['user'])){
header("location: adminlogin.php");
}
?>
<html>
<body>
<?php
$con=mysqli_connect("localhost","root","","information");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM perma");
echo "<table border='1'>
<tr>
<th>Licencetype</th>
<th>Learner no.</th>
<th>LearnerDate</th>
<th>FirstName</th>
<th>MiddleName</th>
<th>LastName</th>
<th>Father_Name</th>
<th>Mother-Name</th>
<th>Age</th>
<th>BG</th>
<th>Gender</th>
<th>Contact</th>
<th>DOB</th>
<th>BirthPlace</th>
<th>House_No</th>
<th>Building</th>
<th>Street</th>
<th>City</th>
<th>Pincode</th>
<th>State</th>
</tr>";
while($row = mysqli_fetch_array($result)) {
echo "<tr>";
echo "<td>" . $row['Licence_For'] . "</td>";
echo "<td>" . $row['Learner_No'] . "</td>";
echo "<td>" . $row['Leaner_Issue_Date'] . "</td>";
echo "<td>" . $row['FName'] . "</td>";
echo "<td>" . $row['MName'] . "</td>";
echo "<td>" . $row['LName'] . "</td>";
echo "<td>" . $row['Father_Name'] . "</td>";
echo "<td>" . $row['Mother_Name'] . "</td>";
echo "<td>" . $row['Age'] . "</td>";
echo "<td>" . $row['BG'] . "</td>";
echo "<td>" . $row['Gender'] . "</td>";
echo "<td>" . $row['Phone'] . "</td>";
echo "<td>" . $row['DOB'] . "</td>";
echo "<td>" . $row['BirthPlace'] . "</td>";
echo "<td>" . $row['House_No'] . "</td>";
echo "<td>" . $row['Building_Name'] . "</td>";
echo "<td>" . $row['Street'] . "</td>";
echo "<td>" . $row['City'] . "</td>";
echo "<td>" . $row['Pincode'] . "</td>";
echo "<td>" . $row['State'] . "</td>";
echo "</tr>";
}
echo "</table>";
mysqli_close($con);
?>
</body>
</html>