Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Admin.cgi : sub delete_records ?

Quote Reply
Admin.cgi : sub delete_records ?
Hello!

What I was trying to find it out was the following...


www.gossamer-threads.com/scripts/forum/resources/Forum9/HTML/000034.html


Is this necessary?
Code:
if ($db->{'db_table'} eq 'Category') {
$db->do ("DELETE FROM CategoryAlternates WHERE CategoryID = $id");
$db->do ("DELETE FROM CategoryRelations WHERE CategoryID = $id OR RelatedID = $id");
$db->do ("DELETE FROM CategoryHeiarchy WHERE CategoryID = $id AND Depth = 0");
$db->do ("DELETE FROM CategoryHeiarchy WHERE SubCategoryID = $id AND Depth > 0");
}
Thanks



[This message has been edited by rajani (edited November 02, 1999).]

[This message has been edited by rajani (edited November 02, 1999).]
Subject Author Views Date
Thread Admin.cgi : sub delete_records ? dearnet 1703 Nov 2, 1999, 9:17 AM
Post Re: Admin.cgi : sub delete_records ?
dearnet 1602 Nov 2, 1999, 9:32 AM
Post Re: Admin.cgi : sub delete_records ?
Alex 1606 Nov 2, 1999, 3:04 PM