-
Notifications
You must be signed in to change notification settings - Fork 0
/
employeestable_view.php
67 lines (51 loc) · 1.17 KB
/
employeestable_view.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
<?php
require_once 'dbconfig.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Product List</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<div id="background">
<div id="page">
<div id="header">
<div id="logo">
<a href="index.html"><img src="images/metrologo.png" alt="LOGO" height="112" width="250"></a>
</div>
<br>
<br>
<br>
<br>
<br>
<h1 style="margin-left: 150px">The employee details are...</h1>
<table width="1000" border="10" cellpadding="20" cellspacing="10" align="center" bgcolor=yellow>
<tr>
<th>EMPLOYEE ID</th>
<th>EMPLOYEE NAME</th>
<th>EMPLOYEE MOBILE NUMBER</th>
<th>WORKING DEPARTMENT</th>
</tr>
<?php
$stmt = $DB_con->prepare('SELECT * FROM employees');
$stmt->execute();
while($row=$stmt->fetch(PDO::FETCH_ASSOC)) {
echo "<tr>";
echo "<td>".$row['eid']."</td>";
echo "<td>".$row['ename']."</td>";
echo "<td>".$row['emno']."</td>";
echo "<td>".$row['edept']."</td>";
echo "</tr>";
}
?>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>