-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.php
71 lines (70 loc) · 1.54 KB
/
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
68
69
70
71
<?php
include 'main.php';
$obj1=new user();
?>
<!DOCTYPE html>
<html>
<head>
<title>view data</title>
<?php include 'css.php'; ?>
</head>
<body>
<?php include 'menu.php'; ?>
<!--Page Header-->
<section class="page_header padding-top">
<div class="container">
<div class="row">
<div class="col-md-12 page-content">
<h1>View File</h1>
<p>We offer the most complete house renovating services in the country</p>
<div class="page_nav">
<span>You are here:</span> <a href="index.php">home</a> <span><i class="fa fa-angle-double-right"></i>View</span>
</div>
</div>
</div>
</div>
</section>
<table class="table">
<tr class="title">
<td>id</td>
<td>fname</td>
<td>lname</td>
<td>email</td>
<td>username</td>
<td>password</td>
<td>action</td>
<td></td>
</tr>
<?php
$data=$obj1->view();
while($row = mysqli_fetch_assoc($data)) {
?>
<tr>
<td>
<?php echo $row["id"]; ?>
</td>
<td>
<?php echo $row["fname"]; ?>
</td>
<td>
<?php echo $row["lname"]; ?>
</td>
<td>
<?php echo $row["email"]; ?>
</td>
<td>
<?php echo $row["username"]; ?>
</td>
<td>
<a href="/saustudy/update.php?id=<?php echo $row["id"]; ?>"><span class="btn btn-primary">EDIT</span></a>
</td>
<td>
<a href="/saustudy/delete.php?id=<?php echo $row["id"]; ?>" ><span class="btn btn-danger">DELETE</span></a>
</td>
</tr>
<?php }
echo "</table>";
?>
<?php include 'js.php'; ?>
</body>
</html>