Fourth pass at adding key files
This commit is contained in:
17
site/slowtwitch.com/www/tick/courses_remove.php
Normal file
17
site/slowtwitch.com/www/tick/courses_remove.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['ID']))
|
||||
{
|
||||
$ID = $_GET["ID"];
|
||||
|
||||
$query = "DELETE FROM maps_coords WHERE segmentID = $ID";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "DELETE FROM segments WHERE ID = $ID LIMIT 1";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/maps_courses.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user