query('SELECT Name FROM artists_group WHERE ArtistID='.$ArtistID); list($Name) = $DB->next_record(); $DB->query('SELECT tg.Name, tg.ID FROM torrents_group AS tg LEFT JOIN torrents_artists AS ta ON ta.GroupID=tg.ID WHERE ta.ArtistID='.$ArtistID); $Count = $DB->record_count(); if($DB->record_count() > 0) { ?>
There are still torrents that have as an artist
Please remove the artist from these torrents manually before attempting to delete.
query('SELECT r.Title, r.ID FROM requests AS r LEFT JOIN requests_artists AS ra ON ra.RequestID=r.ID WHERE ra.ArtistID='.$ArtistID); $Count += $DB->record_count(); if($DB->record_count() > 0) { ?>
There are still requests that have as an artist
Please remove the artist from these requests manually before attempting to delete.
Artist deleted!