diff --git a/lib/meme.php b/lib/meme.php index 11145ea..76b9a59 100644 --- a/lib/meme.php +++ b/lib/meme.php @@ -11,6 +11,7 @@ function addMeme(string $title, string $memeText, int $imageID): array $stmtMemeAdd->bind_param('issi', $_SESSION['ID'], htmlspecialchars($title), htmlspecialchars($memeText), $imageID); if($stmtMemeAdd->execute() && $stmtMemeAdd->affected_rows > 0) { $output["Status"] = "Success"; + $output["Error"] = $stmtMemeAdd->error; } } return $output;