Search Results
Showing results for "= htmlspecialchars($query) ?>"
Enter a search term to find voters, candidates, or records.
No results found for "= htmlspecialchars($query) ?>".
prepare("SELECT u.* FROM users u JOIN election_assignments ea ON u.id = ea.user_id WHERE ea.election_id = ? AND ea.role_in_election = 'Voter' AND (u.name LIKE ? OR u.email LIKE ? OR u.student_id LIKE ?)"); $stmt->execute([$electionId, $search, $search, $search]); $voters = $stmt->fetchAll(); // Search Candidates $stmt = $pdo->prepare("SELECT c.*, u.name as user_name, u.student_id FROM candidates c JOIN users u ON c.user_id = u.id WHERE c.election_id = ? AND (u.name LIKE ? OR c.position LIKE ? OR c.platform LIKE ?)"); $stmt->execute([$electionId, $search, $search, $search]); $candidates = $stmt->fetchAll(); // Search Records (Audit Logs) $stmt = $pdo->prepare("SELECT l.*, u.name as user_name FROM audit_logs l LEFT JOIN users u ON l.user_id = u.id WHERE (l.election_id = ? OR l.election_id IS NULL) AND (l.action LIKE ? OR l.details LIKE ? OR u.name LIKE ?)"); $stmt->execute([$electionId, $search, $search, $search]); $logs = $stmt->fetchAll(); } $projectDescription = $_SERVER['PROJECT_DESCRIPTION'] ?? 'Online Election System for Senior High School'; ?>
Showing results for "= htmlspecialchars($query) ?>"
Enter a search term to find voters, candidates, or records.
No results found for "= htmlspecialchars($query) ?>".