Added deletion of InstBlocks records

This commit is contained in:
pezcurrel 2023-12-27 20:34:45 +01:00
parent 6018139a75
commit e94e286b01

View file

@ -5,6 +5,8 @@ function delinstbyid(&$link,&$id,$efunc,$eol) {
$efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol); $efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol);
if (!query($link,'DELETE FROM InstActivity WHERE InstID='.$id,'eecho',$eol)) return(false); if (!query($link,'DELETE FROM InstActivity WHERE InstID='.$id,'eecho',$eol)) return(false);
$efunc('Deleted '.mysqli_affected_rows($link).' records from InstActivity table.'.$eol); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstActivity table.'.$eol);
if (!query($link,'DELETE FROM InstBlocks WHERE InstID='.$id,'eecho',$eol)) return(false);
$efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol);
if (!query($link,'DELETE FROM InstChecks WHERE InstID='.$id,'eecho',$eol)) return(false); if (!query($link,'DELETE FROM InstChecks WHERE InstID='.$id,'eecho',$eol)) return(false);
$efunc('Deleted '.mysqli_affected_rows($link).' records from InstChecks table.'.$eol); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstChecks table.'.$eol);
if (!query($link,'DELETE FROM InstFinancing WHERE InstID='.$id,'eecho',$eol)) return(false); if (!query($link,'DELETE FROM InstFinancing WHERE InstID='.$id,'eecho',$eol)) return(false);
@ -15,6 +17,8 @@ function delinstbyid(&$link,&$id,$efunc,$eol) {
$efunc('Deleted '.mysqli_affected_rows($link).' records from InstOurLangs table.'.$eol); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstOurLangs table.'.$eol);
if (!query($link,'DELETE FROM InstPolicies WHERE InstID='.$id,'eecho',$eol)) return(false); if (!query($link,'DELETE FROM InstPolicies WHERE InstID='.$id,'eecho',$eol)) return(false);
$efunc('Deleted '.mysqli_affected_rows($link).' records from InstPolicies table.'.$eol); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstPolicies table.'.$eol);
if (!query($link,'DELETE FROM InstRules WHERE InstID='.$id,'eecho',$eol)) return(false);
$efunc('Deleted '.mysqli_affected_rows($link).' records from Instances table.'.$eol);
if (!query($link,'DELETE FROM InstTags WHERE InstID='.$id,'eecho',$eol)) return(false); if (!query($link,'DELETE FROM InstTags WHERE InstID='.$id,'eecho',$eol)) return(false);
$efunc('Deleted '.mysqli_affected_rows($link).' records from InstTags table.'.$eol); $efunc('Deleted '.mysqli_affected_rows($link).' records from InstTags table.'.$eol);
if (!query($link,'DELETE FROM InstTrends WHERE InstID='.$id,'eecho',$eol)) return(false); if (!query($link,'DELETE FROM InstTrends WHERE InstID='.$id,'eecho',$eol)) return(false);