forked from rob-opsi/A-useful-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
items.php
38 lines (34 loc) · 857 Bytes
/
items.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
<?php
if(!isset($_SESSION)) {
session_start();
}
if (!empty($_SESSION['username'])) {
}
else {
header('Location: log-in.php');
}
include ('inc/db_con.php');
include ('inc/account-info.php');
$pageTitle="Items";
include ('inc/head.php');
?>
<div class="row content-area">
<h1>Browse Items</h1>
<div class="col-xs-11 section">
<?php
if($_GET['category']==1||$_GET['category']==2||$_GET['category']==3) {
include('inc/results/show-games.php');
}
if($_GET['category']==4||$_GET['category']==5) {
include('inc/results/show-movies.php');
}
if($_GET['category']==6) {
include('inc/results/show-music.php');
}
if($_GET['category']>6) {
include('inc/results/show-other.php');
}
?>
</div>
</div>
<?php include ('inc/footer.php'); ?>