-
Notifications
You must be signed in to change notification settings - Fork 0
/
getuser.php
44 lines (36 loc) · 832 Bytes
/
getuser.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
<?php
require_once 'dbconfig.php';
if (isset($_REQUEST['id'])) {
$id = intval($_REQUEST['id']);
$query = "SELECT * FROM tbl_members WHERE user_id=:id";
$stmt = $DBcon->prepare( $query );
$stmt->execute(array(':id'=>$id));
$row=$stmt->fetch(PDO::FETCH_ASSOC);
extract($row);
?>
<div class="table-responsive">
<table class="table table-striped table-bordered">
<tr>
<th>First Name</th>
<td><?php echo $first_name; ?></td>
</tr>
<tr>
<th>Last Name</th>
<td><?php echo $last_name; ?></td>
</tr>
<tr>
<th>Email ID</th>
<td><?php echo $email; ?></td>
</tr>
<tr>
<th>Position</th>
<td><?php echo $position; ?></td>
</tr>
<tr>
<th>Office</th>
<td><?php echo $office; ?></td>
</tr>
</table>
</div>
<?php
}