From 733d73de489d20224294b59b569ac3706e3dcdce Mon Sep 17 00:00:00 2001 From: Jonas Leder <git@jonasled.de> Date: Mon, 12 Apr 2021 19:45:54 +0200 Subject: [PATCH] remove old blog get function --- public/internal/footer.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/public/internal/footer.php b/public/internal/footer.php index f0fee0c..b2183e9 100644 --- a/public/internal/footer.php +++ b/public/internal/footer.php @@ -2,21 +2,6 @@ include "mysql.php"; function getFooter(){ - include "mysql.php"; - include "config.php"; - - $newestPost = ""; - - $result = $conn->query("SELECT * FROM posts order by id desc limit $footerMaxPost"); - if ($result->num_rows > 0) { - while ($row = $result->fetch_assoc()) { - $title = $row["title"]; - $id = $row["id"]; - $newestPost .= "<li><a href=\"/post.php?id=$id\">$title</a></li>"; - } - } - - echo (<<<EOF </div> <footer> -- GitLab