-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathread.php
More file actions
55 lines (46 loc) · 1.07 KB
/
read.php
File metadata and controls
55 lines (46 loc) · 1.07 KB
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
<?php
include 'header.php';
include 'includes/read.inc.php';
?>
<body>
<h1><strong>VIEW TASK.</strong></h1><br>
<?php if (isset($_GET['success'])){ ?>
<div class="alert alert-success"
role="alert">
<?php echo $_GET['success']; ?>
</div>
<?php } ?>
<div class="container-fluid"
align="center">
<div class="link-right">
<a href="create.php"
class="link-primary">Create</a>
</div><br>
<div class="box">
<table class="table">
<?php
if ( ($result)) { ?>
<thead>
<tr>
<th scope="col">Your tasks</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
<?php
while ($rows = mysqli_fetch_assoc($result)){?>
<tr>
<td><?=$rows['task']?></td>
<td><a href="update.php?id=<?=$rows['id']?>"
class="btn btn-success">Update</a></td>
<td><a href="includes/delete.inc.php?id=<?=$rows['id']?>"
class="btn btn-danger">Delete</a></td>
</tr>
<?php }?>
</tbody>
</table><br>
<?php } ?>
</div>
</div>
</div>
</body>