discourse-legacysite-perl/site/triclubs/delete_X.php
2024-06-17 22:42:14 +10:00

29 lines
757 B
PHP

<?PHP
include("config.php");
if (!$_POST){ header('Location: '.$site_url); }
$sql = "DELETE FROM gforum_Triclubs WHERE triclub_id = '$_POST[triclub_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_TriclubsEdits WHERE triclub_id_fk = '$_POST[triclub_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_TriclubsEditors WHERE triclub_id_fk = '$_POST[triclub_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_TriclubsComment WHERE triclub_id_fk = '$_POST[triclub_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_TriclubsRating WHERE triclub_id_fk = '$_POST[triclub_id]'";
mysql_query($sql) or die(mysql_error());
header('Location: '.$site_url);
?>