-
Notifications
You must be signed in to change notification settings - Fork 0
/
Criminals.php
49 lines (32 loc) · 1.21 KB
/
Criminals.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
<?php
include('db_connect.php');
$sql = 'SELECT * FROM criminal';
$result = mysqli_query($conn, $sql);
$criminals = mysqli_fetch_all($result, MYSQLI_ASSOC);
mysqli_free_result($result);
mysqli_close($conn);
?>
<!DOCTYPE html>
<html lang="en">
<?php include('header.html'); ?>
<?php include('CriminalHeader.php'); ?>
<div id="main-div-2">
<?php foreach ($criminals as $criminal) { ?>
<div class="div-2">
<?php
echo "<div style='width: 30px' id='img_div'>";
echo "<img src='images/" . $criminal['image'] . "' >";
echo "</div>";
?>
<p><b>Criminal Name: </b><?php echo htmlspecialchars($criminal['Crimname']); ?></p>
<p><b>Height: </b><?php echo htmlspecialchars($criminal['height']); ?></p>
<p><b>Address: </b><?php echo htmlspecialchars($criminal['address']); ?></p>
<p><b>Contact: </b><?php echo htmlspecialchars($criminal['contact']); ?></p>
<p><b>Nationality: </b><?php echo htmlspecialchars($criminal['nationality']); ?></p>
<p><b>Crimes Comitted: </b><?php echo htmlspecialchars($criminal['crimes_com']); ?></p>
<p><b>Status: </b><?php echo htmlspecialchars($criminal['status']); ?></p>
</div>
<?php } ?>
</div>
</body>
</html>