'.$row['postTitle'].'
'; echo ''.$row['postDesc'].'
'; echo ''; echo 'Posted on '.date('jS M Y H:i:s', strtotime($row['postDate'])).' in '; $stmt2 = $db->prepare('SELECT catTitle, catSlug FROM blog_cats, blog_post_cats WHERE blog_cats.catID = blog_post_cats.catID AND blog_post_cats.postID = :postID'); $stmt2->execute(array(':postID' => $row['postID'])); $catRow = $stmt2->fetchAll(PDO::FETCH_ASSOC); $links = array(); foreach ($catRow as $cat) { $links[] = "".$cat['catTitle'].""; } echo implode(", ", $links); echo ' by '.$row['postUser'].'
'; echo '