require ($_SERVER['DOCUMENT_ROOT'] . '/universal/db_connect.php'); $getArticle = mysqli_real_escape_string($dbc, $_GET['article']); if ($getArticle != "") { $query = "SELECT * FROM articles WHERE article_web = '$getArticle'"; if ($r = mysqli_query($dbc, $query)) { while ($row = mysqli_fetch_array($r)) { $articleTitle = $row['title']; $article = $row['article']; $title = $articleTitle; require($_SERVER['DOCUMENT_ROOT'] . '/universal/html_header.php'); echo("
$article
"); } } echo("This page lists some of my better written works. I will publish works here when they are finished. All of the works are copyrighted by me. Please do not reproduce them without my written permission /* (which can be obtained through the Contact page) */?>. However, you are free to link to the articles.
$query = "SELECT * FROM articles";
if ($r = mysqli_query($dbc, $query)) {
while ($row = mysqli_fetch_array($r)) {
$articleWeb = $row['article_web'];
$articleTitle = $row['title'];
$articleDescription = $row['blurb'];
echo("
\n
\n
$articleTitle\n
$articleDescription");
}
}
}
require($_SERVER['DOCUMENT_ROOT'] . '/universal/html_footer.php');