Welcome to the Blog
The latest articles and updates, just for you.
No posts found. Run the setup script to seed the database.
php db/setup.php
query("SELECT * FROM posts ORDER BY created_at DESC"); $posts = $stmt->fetchAll(); } catch (PDOException $e) { // For a real app, you'd log this error and show a user-friendly message. // For this demo, we'll just show the error. error_log("DB Error: " . $e->getMessage()); } ?>
The latest articles and updates, just for you.
No posts found. Run the setup script to seed the database.
php db/setup.php