Catalog
-
Browse by
Category
All categories
Hats
Shirts
Pants
Gears
Packages
-
Legend
Limited
Limited Items
Owners of these discontinued items can re-sell them to other users at any price.
Limited U
Limited Unique Items
A limited supply originally sold by . Each unit is labeled with a serial number. Once sold out, owners can re-sell them to other users.
prepare(str_replace('allStar', 'count(*)', $sql));
$q->execute();
$numberOfItems = $q->fetchColumn();
$sql = "SELECT allStar FROM catalog LIMIT :limit OFFSET :offset";
$page = $_GET['p'] ?? 0;
$limit = 20;
$lpage = $limit*$page;
$q = $con->prepare(str_replace('allStar', '*', $sql));
$q->bindParam(':limit', $limit, PDO::PARAM_INT);
$q->bindParam(':offset', $lpage, PDO::PARAM_INT);
$q->execute();
if ($numberOfItems >= 1) {
foreach ($q->fetchAll() as $item) {
$query = $con->prepare('SELECT COUNT(id) FROM users WHERE id=:id');
$query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT);
$query->execute();
$userExists = $query->fetchColumn();
if($userExists <= 1) {
$creator = [
"id" => $_SESSION['user'],
"username" => $item["name"]
];
} else {
$creator = [
"id" => 0,
"username" => "[ unknown user ]"
];
}
?>
";} ?>