+
+
+ Page not found.diff --git a/community.php b/community.php new file mode 100644 index 0000000..a12f851 --- /dev/null +++ b/community.php @@ -0,0 +1,50 @@ +query("SELECT posts.*, users.username FROM posts JOIN users ON posts.user_id = users.id ORDER BY posts.created_at DESC"); + $posts = $stmt->fetchAll(); +} catch (PDOException $e) { + // Handle error + echo "
No posts yet. Be the first to share your story!
+ + Login to Post + +Posted by on
+