prepare($sql);
$stmt->execute($params);
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
echo "";
echo "| " . htmlspecialchars($row['id']) . " | ";
echo "" . htmlspecialchars($row['full_name']) . " | ";
echo "" . htmlspecialchars($row['email']) . " | ";
echo "" . htmlspecialchars($row['created_at']) . " | ";
$status_class = 'bg-yellow-200 text-yellow-800';
if ($row['status'] === 'Approved') {
$status_class = 'bg-green-200 text-green-800';
} elseif ($row['status'] === 'Rejected') {
$status_class = 'bg-red-200 text-red-800';
}
echo "" . htmlspecialchars($row['status']) . " | ";
echo "View Details | ";
echo "
";
}
?>