-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete.php
More file actions
36 lines (33 loc) · 872 Bytes
/
Copy pathdelete.php
File metadata and controls
36 lines (33 loc) · 872 Bytes
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
<?php
include_once 'database.php';
$result = mysqli_query($db,"SELECT * FROM images");
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>Delete employee data</title>
</head>
<body>
<table class="table table-bordered table-striped" align="center" bgcolor= "#00ff7f">
<td>ID</td>
<td>IMAGE-NAME</td>
<td>COMMENTS</td>
<td>ACTION</td></tr>
<?php
$i=0;
while($row = mysqli_fetch_array($result))
{
?>
<tr class="<?php if(isset($classname)) echo $classname;?>">
<td><?php echo $row["id"]; ?></td> <br>
<td><?php echo $row["image"]; ?></td> <br>
<td><?php echo $row["text"]; ?></td> <br>
<td><a href="delete-process.php?id=<?php echo $row["id"]; ?>">REMOVE</a></td>
</tr>
<?php
$i++;
}
?>
</table>
</body>