Order by: latest | oldest || Get RSS Feed!
prepare("SELECT * FROM posts ORDER BY id $orderBy"); $stmt->execute(); while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $post = new Post($con, $row); $postUrl = $post->getPostUrl(); $postAuthor = $post->getPostAuthor(); $postedDate = $post->getPublishedDate(); $postContent = $Parsedown->text($post->getPostContent()); $item = "
" . $postAuthor . " ยท " . $postedDate . " [GMT +7]

" . $postContent . "

Read More
"; echo $item; } ?>