Location: PHPKode > projects > Web-Based Election Software > e-admin/deletespecialvote.php
<?php
ini_set('display_errors', 1);
ini_set('display_warnings', 1);
include('loggedincheck.php');

// connect to db server.
include('../includes/dbconnection.php');

$sqlq = "DELETE FROM specialvotes WHERE id = '".mysql_real_escape_string($_GET['id'])."'";
$sqlresult = mysql_query($sqlq);
if (!$sqlresult) {
    die('Invalid query: ' . mysql_error());
}

$sqlq = "DELETE FROM specialvoters WHERE id = '".mysql_real_escape_string($_GET['id'])."'";
$sqlresult = mysql_query($sqlq);
if (!$sqlresult) {
    die('Invalid query: ' . mysql_error());
}

header("location:specialadminvotes.php");

?>
Return current item: Web-Based Election Software