<!DOCTYPE html> <?php include_once 'includes/connection.php'; include_once 'includes/article.php'; $article = new Article(); $articles = $article->fetch_all(); ?> <html> <head> <meta charset="UTF-8"> <title>Simple CMS</title> <link rel="stylesheet" href="assets/style.css" /> </head> <body> <div class="container"> <a href="index.php" id="logo">CMS</a> <ol> <?php foreach ($articles as $article) { ?> <li><a href="article.php?id=<?php echo $article['id']; ?> "> <?php echo $article['title']; ?> </a> - <small>posted <?php