discourse-legacysite-perl/site/roadshow/delete_X.php

33 lines
882 B
PHP
Raw Permalink Normal View History

2024-06-17 12:42:14 +00:00
<?PHP
include("config.php");
if (!$_POST){ header('Location: '.$site_url); }
$sql = "DELETE FROM ".$prefix.$main_table." WHERE ".$field_lead."id = ".$_POST[$field_lead.'id'];
//echo $sql;
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM ".$prefix.$main_table."Edits WHERE ".$field_lead."id_fk = ".$_POST[$field_lead.'id'];
//echo $sql;
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM ".$prefix.$main_table."Editors WHERE ".$field_lead."id_fk = ".$_POST[$field_lead.'id'];
//echo $sql;
mysql_query($sql) or die(mysql_error());
//$sql = "DELETE FROM ".$prefix.$main_table."Comment WHERE openwater_id_fk = '$_POST[openwater_id]'";
//mysql_query($sql) or die(mysql_error());
//$sql = "DELETE FROM gforum_OpenWaterRating WHERE openwater_id_fk = '$_POST[openwater_id]'";
//mysql_query($sql) or die(mysql_error());
header('Location: '.$site_url);
?>