Fourth pass at adding key files
This commit is contained in:
16
site/slowtwitch.com/www/tick/events_set_default.php
Normal file
16
site/slowtwitch.com/www/tick/events_set_default.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?require ("global.php");?>
|
||||
<?php
|
||||
|
||||
if (isset($_GET['tag']))
|
||||
{
|
||||
$tag = $_GET["tag"];
|
||||
$query = "UPDATE events SET default_flag = 'no' WHERE default_flag = 'yes'";
|
||||
$result = mysql_query($query, $db);
|
||||
|
||||
$query = "UPDATE events SET default_flag = 'yes' WHERE tag = '$tag'";
|
||||
$result = mysql_query($query, $db);
|
||||
}
|
||||
|
||||
header("Location: /tick/events.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user