diff --git a/assets/placeholder.png b/assets/placeholder.png new file mode 100644 index 0000000..db22339 Binary files /dev/null and b/assets/placeholder.png differ diff --git a/catalog.php b/catalog.php index 7899122..c6cdbdd 100644 --- a/catalog.php +++ b/catalog.php @@ -75,20 +75,49 @@ $getitstarted->header();
- + prepare(str_replace('allStar', 'count(*)', $sql)); + $q->execute(); + $numberOfItems = $q->fetchColumn(); + $q = $con->prepare(str_replace('allStar', '*', $sql)); + $q->execute(); + if ($numberOfItems >= 1) { + while ($item = $q->fetch()) { + $qq = $con->prepare("SELECT * FROM users WHERE id = :id"); + $qq->bindParam(':id', $item["creator"], PDO::PARAM_INT); + $qq->execute(); + $creator = $qq->fetch(); + if(!$creator) { + $creator = [ + "id" => 0, + "username" => "[ unknown user ]" + ]; + } + $x = 40; + for ($i = 1; $i <= $x; $i++) { + ?>
- + " class="card-img-top">

Limited'; }; ?>

- $1 + $
-
Minion
+

- By someone + By " class="btn-link">

-
+ +
diff --git a/games.php b/games.php index fde6bdb..d4779fd 100644 --- a/games.php +++ b/games.php @@ -41,7 +41,7 @@ $getitstarted->header(); for ($i = 1; $i <= $x; $i++) { ?>
" style="text-decoration: none; text-align: left; margin-bottom: 9px;"> - " class="card-img-top rounded-top" alt=""> + " class="card-img-top rounded-top" alt="">