query("SELECT COUNT(*) FROM users")->fetchColumn(); $lpas_count = $db->query("SELECT COUNT(*) FROM lpa_applications")->fetchColumn(); // Get all users $users = $db->query("SELECT * FROM users ORDER BY created_at DESC LIMIT 50")->fetchAll(); // Get all LPAs $lpas = $db->query("SELECT * FROM lpa_applications ORDER BY created_at DESC LIMIT 50")->fetchAll(); // Get migration history try { $migration_history = $db->query("SELECT * FROM migration_history ORDER BY executed_at DESC")->fetchAll(); } catch (PDOException $e) { // migration_history might not exist yet if installer hasn't run or table not created $migration_history = []; } } catch (PDOException $e) { error_log($e->getMessage()); } ?>
Overview of all users and applications in the system.
| Name | Role | Verified | Joined | |
|---|---|---|---|---|
| Yes No |
| Type | Donor | Progress | Status | Actions |
|---|---|---|---|---|
|
ID: #
|
|
|||
| No applications found. | ||||
| File Name | Executed At |
|---|---|
| No migration history found. Run migrations to initialize. | |