ID;

$S_ID = 16;

if ($Member_ID == 1)
{

if(empty($Case))

{ $Case = 0; }

if(!empty($_POST))

{ $Case = $_POST[“Case”]; }

switch ($Case) {

case 0:
?>

Remove Results for –

Event:

Your Query: ” . $your_query . “
AError: (” . mysql_errno() . “) ” . mysql_error());
while ($row = mysql_fetch_array($result))
{
extract($row);

if($Results_Processed==1)
{
$ds_Starts = $ds_Starts – 1;
$ds_Laps_Led = $ds_Laps_Led – $Laps_Led;
$ds_Race_Pts = $ds_Race_Pts – $Pts;
$ds_Rookie_Pts = $ds_Rookie_Pts – $Rpts;
$ds_BPts_Win = $ds_BPts_Win – $BPts_Win;
$ds_BPts_Laps = $ds_BPts_Laps – $BPts_Laps;
$ds_BPts_MLaps = $ds_BPts_MLaps – $BPts_MLaps;
$ds_BPts_Inc = $ds_BPts_Inc – $BPts_Inc;
$ds_BPts_IncN = $ds_BPts_IncN – $BPts_IncN;
$ds_Prov = $ds_Prov – $Prov;
$ds_Inc = $ds_Inc – $Inc;
$ds_Rookie_Pts = $ds_Rookie_Pts – $RPts;
$ds_Total_Pts = $ds_Total_Pts – $Pts – $BPts_Win – $BPts_Laps – $BPts_MLaps – $BPts_Inc – $BPts_IncN;

if($Finish == 1)
{
$ds_Wins–;
}

if($Finish <= 5) { $ds_T5--; } if($Finish <= 10) { $ds_T10--; } $sql1="UPDATE driver_stats SET ds_Starts='$ds_Starts',ds_Wins='$ds_Wins',ds_T5='$ds_T5',ds_T10='$ds_T10',ds_Laps_Led='$ds_Laps_Led',ds_Total_Pts='$ds_Total_Pts',ds_Race_Pts='$ds_Race_Pts',ds_Rookie_Pts='$ds_Rookie_Pts',ds_BPts_Win='$ds_BPts_Win',ds_BPts_Laps='$ds_BPts_Laps',ds_BPts_MLaps='$ds_BPts_MLaps',ds_BPts_Inc='$ds_BPts_Inc',ds_BPts_IncN='$ds_BPts_IncN',ds_Prov='$ds_Prov',ds_Inc='$ds_Inc' WHERE Driver_ID = '$Driver_ID' and Series_ID = '$Series_ID'"; mysql_query($sql1); } } ### Remove event results $sql = "DELETE FROM event_results WHERE Event_ID = $Event_ID"; $result = mysql_query($sql) or die("A MySQL error has occurred.
Your Query: ” . $your_query . “
AError: (” . mysql_errno() . “) ” . mysql_error());

echo “Results for $Event_Name removed”;

$sql = “UPDATE events SET Results_Processed=’0′,Results_Uploaded=’0′ WHERE Event_ID = $Event_ID”;
mysql_query($sql);

$sql = “UPDATE event_provisionals SET Processed=’0′ WHERE Event_ID = $Event_ID”;
mysql_query($sql);

break;
}
?>

Return to League Management