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

29 lines
757 B
PHP
Raw Normal View History

2024-06-17 12:42:14 +00:00
<?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);
?>