query("SELECT ArtistID FROM artists_alias WHERE Name LIKE '$Name'"); if(list($ID) = $DB->next_record(MYSQLI_NUM, false)) { header('Location: artist.php?id='.$ID); die(); } else { if(isset($LoggedUser['SearchType']) && $LoggedUser['SearchType']) { header('Location: torrents.php?action=advanced&artistname='.urlencode($_GET['artistname'])); } else { header('Location: torrents.php?searchstr='.urlencode($_GET['artistname'])); } die(); } } else { header('Location: torrents.php'); } } ?>