getMessage();} $sql = "SELECT * FROM blogposts ORDER BY postdate DESC LIMIT 5"; $rows = $conn->query($sql); ?>
getMessage();} $sql = "SELECT * FROM blogposts ORDER BY postdate DESC"; $rows = $conn->query($sql); echo '
'; foreach ($rows as $row) { $blogid = $row["blogid"]; $cr_date=date_create($row["postdate"]); $date=date_format($cr_date,'M d'); echo '
' . $date . '

' . $row["title"] . '

Posted By: ' . $row["author"] . '

news

' . $row["postbody"] . '

0 Comments
'; } ?>