if ($isadmin == 1) { echo $_POST['adminClanPost']; if ( isset($_POST['adminClanPost'])){ $dbQuery="INSERT INTO clanposts(postTitle, postDate, postContent, postAuthor) VALUES ('$postTitle', NOW(), '$postContent', '$postAuthor')"; } else { $dbQuery="INSERT INTO posts(postTitle, postDate, postContent, postAuthor) VALUES ('$postTitle', NOW(), '$postContent', '$postAuthor')"; } }