remove old blog get function

This commit is contained in:
Jonas Leder 2021-04-12 19:45:54 +02:00
parent 57798af4a2
commit 733d73de48

View file

@ -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>