forked from Adleraci/adlerka.top
MEME
This commit is contained in:
parent
99d4f076f9
commit
7da94c06d4
@ -10,7 +10,9 @@ function addMeme(string $title, string $memeText, int $imageID): array
|
||||
$stmtMemeAdd = $mysqli->prepare('INSERT INTO Memes (AuthorID, Title, TextContent, FileID) VALUES (?, ?, ?, ?)');
|
||||
$stmtMemeAdd->bind_param('issi', $_SESSION['ID'], htmlspecialchars($title), htmlspecialchars($memeText), $imageID);
|
||||
$stmtMemeAdd->execute();
|
||||
$output["Status"] = "Success";
|
||||
if($stmtMemeAdd->affected_rows > 0) {
|
||||
$output["Status"] = "Success";
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user