Example #1
0
function DeletePost()
{
    $query = "select * from `position` where parent_post_id=" . $_REQUEST["post_id"];
    $temp = PdoDataAccess::runquery($query);
    if (count($temp) != 0) {
        echo "ChildError";
        die;
    }
    manage_posts::RemovePost($_POST["post_id"]);
    print_r(ExceptionHandler::PopAllExceptions());
    echo "true";
    die;
}