require 'config/connect.php'; // Lấy bài viết $stmt = $conn->query("SELECT * FROM articles WHERE status='published' ORDER BY created_at DESC LIMIT 10"); $articles = $stmt->fetchAll(PDO::FETCH_ASSOC); // Bài xem nhiều nhất $stmtTop = $conn->query("SELECT * FROM articles WHERE status='published' ORDER BY views DESC LIMIT 5"); $topArticles = $stmtTop->fetchAll(PDO::FETCH_ASSOC); ?> Pháp Luật Đời Sống — Báo Điện Tử Chính Thức