http://localhost/online_voting/
If you're new to PHP and MySQL projects, it's essential to have a basic understanding of these technologies and web development principles.
// Update voter status $update = $pdo->prepare("UPDATE voters SET has_voted = 1 WHERE id = ?"); $update->execute([$voter_id]);