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

29 lines
732 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_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);
?>