query("SELECT id, title, created_at FROM surveys ORDER BY created_at DESC"); $surveys = $stmt->fetchAll(); } catch (PDOException $e) { // Handle error properly in a real app error_log("Database error: " . $e->getMessage()); } ?>
| ID | Title | Created At | Actions |
|---|---|---|---|
| No surveys found. | |||
| View View Responses | |||