remove old blog get function
This commit is contained in:
parent
57798af4a2
commit
733d73de48
1 changed files with 0 additions and 15 deletions
|
@ -2,21 +2,6 @@
|
||||||
include "mysql.php";
|
include "mysql.php";
|
||||||
|
|
||||||
function getFooter(){
|
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
|
echo (<<<EOF
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
Loading…
Reference in a new issue