render single article if (isset($_GET['id']) && ($_GET['id'] != "")) { $article_id = $_GET['id']; $article = single_article($article_id,'article.php'); $comments = show_comments($article_id); $form = comment_form($article_id); $content = "

Single article

\n" ."
\n" .$article ."
\n"; if ($comments != "") { $content = $content ."
\n" ."

Comments

\n" .$comments ."
\n"; } $content = $content ."
\n" .$form ."
\n"; $title = "Single article"; } // If no article_id => render article list else { $list = article_list(0,3,3,'article.php'); $content = "

The article list

\n" ."
\n" .$list ."
\n"; $title = "The article list"; } render_page($title, $content); ?>