-
Notifications
You must be signed in to change notification settings - Fork 0
/
survival.php
37 lines (26 loc) · 875 Bytes
/
survival.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
<?php
include("includes/header.php");
?>
<h1><?php echo APP_NAME; ?></h1>
<div class="thumbnail-container">
<?php $result = mysqli_query($con, "SELECT * FROM craft WHERE category LIKE 'Survival'"); ?>
<?php while($row = mysqli_fetch_array($result)) : ?>
<?php
$name = $row['item_name'];
$filename = $row['img_filename'];
$item_id = $row['item_id'];
$category = $row['category'];
echo "<div class=\"image-thumbnail\">";
$imgUrl = "<a href=\"page.php?item_id=$item_id\">";
$imgSrc = "<img src=\"uploads/display/$filename\" /></a>";
$displayImg = $imgUrl . $imgSrc;
echo $displayImg;
echo "<p>$name</p>";
echo "</div>";
?>
<?php endwhile; ?>
</div>
<?php include("includes/widgets.php"); ?>
<?php
include("includes/footer.php");
?>