/* ----------------------------------------------------------------------------- Returns HTML document content from content database Input: The current page id (string) Output: HTML text (string) ----------------------------------------------------------------------------- */ function return_content($pageid) { $sql = "SELECT title, content, parent FROM pages WHERE pageid = '".$pageid."'"; $content = run_query($sql)->fetch_assoc(); return '

'.$content['title'].'

'.$content['content'].'
'; } /* ----------------------------------------------------------------------------- Echo return_content ----------------------------------------------------------------------------- */ function echo_content($pageid) { echo return_content($pageid); }