This commit is contained in:
Bruno Rybársky 2024-04-25 23:16:13 +02:00
parent 74c44f36f9
commit ace3ea61f7

@ -11,6 +11,7 @@ function addMeme(string $title, string $memeText, int $imageID): array
$stmtMemeAdd->bind_param('issi', $_SESSION['ID'], htmlspecialchars($title), htmlspecialchars($memeText), $imageID); $stmtMemeAdd->bind_param('issi', $_SESSION['ID'], htmlspecialchars($title), htmlspecialchars($memeText), $imageID);
if($stmtMemeAdd->execute() && $stmtMemeAdd->affected_rows > 0) { if($stmtMemeAdd->execute() && $stmtMemeAdd->affected_rows > 0) {
$output["Status"] = "Success"; $output["Status"] = "Success";
$output["Meme"] = "Funny";
$output["Error"] = $stmtMemeAdd->error; $output["Error"] = $stmtMemeAdd->error;
} }
} }