PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$stmt = $dbh->prepare("
SELECT *
FROM `blog`
WHERE `status` <> 'D'
ORDER BY `date_created` DESC
");
if ($stmt->execute())
{
if ($stmt->rowCount() > 0)
{
while ($row_blog = $stmt->fetch())
{
echo '<div>'.$row_blog['title'].'</div>';
echo '<div>'.$row_blog['blog'].'</div>';
}
}
}
the title shows up fine but the blog doesn't. i've even changed blog to varchar(255) thinking it might have something to do w/ the length since my title column is displaying but no luck. am i missing something?
thanks that helped a lot. turns out it wasn't saving the $_POST['blog']. which led me to tinymce and jquery. i recoded that part and now it's working as expected.