MEME
This commit is contained in:
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user