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

29 lines
732 B
PHP

<?PHP
include("config.php");
if (!$_POST){ header('Location: '.$site_url); }
$sql = "DELETE FROM gforum_Coaches WHERE coach_id = '$_POST[coach_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_CoachesEdits WHERE coach_id_fk = '$_POST[coach_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_CoachesEditors WHERE coach_id_fk = '$_POST[coach_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_CoachesComment WHERE coach_id_fk = '$_POST[coach_id]'";
mysql_query($sql) or die(mysql_error());
$sql = "DELETE FROM gforum_CoachesRating WHERE coach_id_fk = '$_POST[coach_id]'";
mysql_query($sql) or die(mysql_error());
header('Location: '.$site_url);
?>