This commit is contained in:
Bruno Rybársky 2024-04-25 23:15:45 +02:00
parent 16716a9b18
commit 74c44f36f9

@ -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["Error"] = $stmtMemeAdd->error;
} }
} }
return $output; return $output;