/************************************************************************ ||------------|| Edit artist wiki page ||------------------------------|| This page is the page that is displayed when someone feels like editing an artist's wiki page. It is called when $_GET['action'] == 'edit'. $_GET['artistid'] is the ID of the artist, and must be set. ************************************************************************/ $ArtistID = $_GET['artistid']; if (!is_number($ArtistID)) { error(0); } // Get the artist name and the body of the last revision $DB->query(" SELECT Name, Image, Body, VanityHouse FROM artists_group AS a LEFT JOIN wiki_artists ON wiki_artists.RevisionID=a.RevisionID WHERE a.ArtistID='$ArtistID'"); if ($DB->record_count() < 1) { error("Cannot find the artist with the ID ".$ArtistID.': See the log.'); } list($Name, $Image, $Body, $VanityHouse) = $DB->next_record(MYSQLI_NUM, true); // Start printing form View::show_header('Edit artist'); ?>