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 .= "
  • $title
  • "; } } echo (<< EOF); }