add basic post functionality

This commit is contained in:
Hendrik
2017-01-26 11:35:18 +01:00
parent f06de1e88d
commit 328f0665f3
5 changed files with 40 additions and 6 deletions

View File

@@ -76,7 +76,7 @@ function makePost($userID, $groupID, $title, $content) {
}
function makeComment($postID, $userID, $content) {
$stmt = $_GLOBAL["db"]->prepare("
$stmt = $GLOBALS["db"]->prepare("
INSERT INTO
`comment` (
`postID`,