require_once('site_core.php'); require_once('site_db.php'); // Set the title of the page $title = "Delete Page"; echo_head($title); echo '
You must enter an id in the URL, i.e., ?id=pageid
'; } else if ($action=='delete') { $sql = "DELETE FROM pages WHERE pageid='$id'"; run_query($sql); // $sql = "DELETE FROM asides WHERE asideid='$id'"; // $sql = "DELETE FROM has_aside WHERE asideid='$aid' AND pageid='$pid'"; echo ''.$id.' was deleted from pages
'; } else { echo 'Are you sure you want to delete '.$id.' from pages?
'; } echo '