'.$title.'

'; $id = $_GET['id']; $action = $_GET['action']; if ($id == '') { 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?

Yes

'; } echo ''; echo_foot(); ?>