-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathload.php
52 lines (52 loc) · 1.1 KB
/
load.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
<?php
include "connection.php";
$id = $_GET['eid'];
$sql = "SELECT * FROM employee WHERE id = '$id'";
$result34 = mysql_query($sql) or die("Failed Sql Query");
while ($row3 = mysql_fetch_assoc($result34)) {
?>
<table class="table table-striped">
<tr>
<th><button class="btn btn-primary addEmployee">Add New Employee</button></th>
<td></td>
</tr>
<tr>
<th>Employee No.</th>
<td><?= $row3['employee_no'] ?></td>
</tr>
<tr>
<th>Name</th>
<td><?= $row3['title'] ?> <?= $row3['surname'] ?> <?= $row3['lastname'] ?></td>
</tr>
<tr>
<th>Dept</th>
<td><?= $row3['dept'] ?></td>
</tr>
<tr>
<th>Role</th>
<td><?= $row3['position'] ?></td>
</tr>
<tr>
<th>Address</th>
<td><?= $row3['address'] ?></td>
</tr>
<tr>
<th>Phone No</th>
<td><?= $row3['phoneno'] ?></td>
</tr>
<tr>
<th>Guarantor's Name</th>
<td><?= $row3['guarantor_name'] ?></td>
</tr>
<tr>
<th>Guarantor's No</th>
<td><?= $row3['guarantor_no'] ?></td>
</tr>
<tr>
<th>Joined</th>
<td><?= date_only($row3['joined']) ?></td>
</tr>
</table>
<?php
}
?>