Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 39 → Rev 40

/blog/post-add.php
6,7 → 6,7
 
if (isset($_POST['title']) && isset($_POST['content']) && isset($_POST['catagory']) && isset($_POST['parentID']))
{
$page->query("insert into BlogPosts VALUES(0, "' . $page->getLoggedInUser. '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", ' . $_POST['parentID'] . ', 0)');
$page->query('insert into BlogPosts VALUES(0, "' . $page->getLoggedInUser. '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", ' . $_POST['parentID'] . ', 0)');
$page->redirect("index.php");
}