Update article layout
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2022-12-27 21:50:57 -05:00
parent 63cc2b9e1a
commit 9ce2f42e1c

View File

@ -8,7 +8,6 @@ class Article {
$db = getenv("MYSQL_DB");
$user = getenv("MYSQL_USER");
$pass = getenv("MYSQL_PASS");
return new Article($host, $db, $user, $pass);
}
@ -22,7 +21,7 @@ class Article {
}
public function getAllPosts() {
$result = mysqli_query($this->client, 'SELECT * FROM post');
$result = mysqli_query($this->client, 'SELECT * FROM post ORDER BY created DESC');
return mysqli_fetch_all($result);
}