query("SELECT id, name, email, phone, company, status, created_at FROM contacts ORDER BY created_at DESC"); $contacts = $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { // In a real app, you'd log this error and show a user-friendly message. // For now, we'll just show a simple error. echo '