The vote.php page uses JavaScript to submit votes without reloading:
// Check if already voted $check = "SELECT is_voted FROM users WHERE id='$voter_id'"; $result = mysqli_query($conn, $check); $user = mysqli_fetch_assoc($result); The vote
Replace https://github.com/yourusername/online-voting-system-php with your actual GitHub repository URL if you have one. If you need a ready-made source code example, I can also guide you to existing open-source projects on GitHub. $result = mysqli_query($conn