I use the following codes in the sub delete_records routine in the admin.cgi script:
Code:
if ($db->{'db_table'} eq 'Links') {
$db->do ("DELETE FROM Bookmarks WHERE LinkID = $id");
}
(Bookmarks is the table I use to store MYLINKS.)
Of course, these codes would have to be upgraded to work with the NG version (LINKS SQL v.2.0.3).
I have seen that in the latter versions of LINKS SQL v.2.0 that there are some referential integrity notices like "foreign key" warnings...I am unsure whether this has been integrating into deleting records in tables.
Anyway...the above codes may give you a head start.
Regards,
Eliot Lee