forked from Adleraci/adlerka.top
Test meme filtering
This commit is contained in:
parent
3e4a0ce45c
commit
c7b4f1c3c3
@ -29,6 +29,7 @@ function addMeme(string $title, string $memeText, int $imageID): array
|
|||||||
function executeAndRenderMemes(mysqli_stmt $stmt): string {
|
function executeAndRenderMemes(mysqli_stmt $stmt): string {
|
||||||
global $routerConfig;
|
global $routerConfig;
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
$stmt->store_result();
|
||||||
$stmt->bind_result($memeID, $title, $textContent, $createdAt, $authorID, $filePath, $imageWidth, $imageHeight, $userNickname);
|
$stmt->bind_result($memeID, $title, $textContent, $createdAt, $authorID, $filePath, $imageWidth, $imageHeight, $userNickname);
|
||||||
|
|
||||||
$memes_out = '';
|
$memes_out = '';
|
||||||
@ -168,7 +169,6 @@ function renderMemeGallery(?int $offset = null, ?int $authorId = null, ?int $mem
|
|||||||
|
|
||||||
$stmt = $mysqli->prepare($query);
|
$stmt = $mysqli->prepare($query);
|
||||||
$stmt->bind_param($types, ...$params);
|
$stmt->bind_param($types, ...$params);
|
||||||
$stmt->store_result();
|
|
||||||
return executeAndRenderMemes($stmt);
|
return executeAndRenderMemes($stmt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user