forked from Adleraci/adlerka.top
MEME
This commit is contained in:
@@ -37,7 +37,6 @@ function renderMemeGallery(): string
|
||||
$stmtlist = $mysqli->prepare('SELECT Memes.ID, Memes.Title, Memes.TextContent, Memes.CreatedAt, Files.Path, Files.Type, Users.Nickname FROM Memes INNER JOIN Users ON Memes.AuthorID = Users.ID INNER JOIN Files ON Memes.FileID = Files.ID');
|
||||
|
||||
// Execute the prepared statement
|
||||
$stmtlist->execute();
|
||||
$memeID = 0;
|
||||
$title = "";
|
||||
$textContent = "";
|
||||
@@ -47,6 +46,8 @@ function renderMemeGallery(): string
|
||||
$createdAt = "";
|
||||
// Bind the result variables
|
||||
$stmtlist->bind_result($memeID, $title, $textContent, $createdAt, $filePath, $fileType, $userNickname);
|
||||
$stmtlist->execute();
|
||||
$stmtlist->fetch();
|
||||
|
||||
$meme_gallery_template = file_get_contents($routerConfig['template_dir'] . 'meme_gallery.html');
|
||||
|
||||
|
Reference in New Issue
Block a user