|
ENDHTML;
}
if(isset($_POST['stop'])){
mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$autorace->naam1','Autorace','$data->login heeft de autorace geweigert.')");
mysql_query("DELETE FROM `[autorace]` WHERE `id`='$autorace->id'");
mysql_query("UPDATE `[users]` SET `ar`='0' WHERE `login`='$data->login'");
mysql_query("UPDATE `[users]` SET `ar`='0' WHERE `login`='$autorace->naam1'");
}
elseif(isset($_POST['start'])){
$id = $_POST['id'];
$id1 = mysql_query("SELECT * FROM `garage` WHERE `id`='$id' AND `login`='$data->login'");
$id1 = mysql_num_rows($id1);
if($id1 ==0){
print "