prepare("SELECT blog_id, title, description, status, date, image FROM blogs WHERE author = ? AND status != 'deleted' ORDER BY date DESC"); $result->bind_param("i", $user_id); $result->execute(); $posts = $result->get_result(); ?>

My Posts

×
+ New Post fetch_assoc()): // Output the HTML structure with dynamic data echo '
' . $post[
' . strtoupper($post["status"]) . '
' . $post["title"] . '

' . $post["description"] . '

'; endwhile; ?>