Proposals in
Shape the future of your community.
No proposals yet. Be the first to create one!
prepare('SELECT * FROM communities WHERE id = ?'); $stmt->execute([$community_id]); $community = $stmt->fetch(); if (!$community) { echo "Community not found."; exit; } // Fetch user role $stmt = $pdo->prepare('SELECT role FROM users WHERE id = ?'); $stmt->execute([$user_id]); $user_role = $stmt->fetchColumn(); // Fetch proposals for the community $stmt = $pdo->prepare('SELECT p.*, u.name as user_name FROM proposals p JOIN users u ON p.user_id = u.id WHERE p.community_id = ? ORDER BY p.created_at DESC'); $stmt->execute([$community_id]); $proposals = $stmt->fetchAll(); ?>
Shape the future of your community.
No proposals yet. Be the first to create one!