$artist_name = $_GET['artist_name'] ;
$url_page = $config['http_home_url'] . "artist/" . $artist_name;
$user_query = "do=artist&artist_name=" . $artist_name;
$news_sort_by_year = ($config['news_sortyear']) ? $config['news_sortyear'] : "year";
$news_direction_by_year = ($config['news_msortyear']) ? $config['news_msortyear'] : "ASC";
$sql_select = "SELECT SQL_CALC_FOUND_ROWS p.id, p.autor,p.artist,p.artist_name,p.country,p.year, p.date, p.short_story, CHAR_LENGTH(p.full_story) as full_story, p.xfields, p.title, p.category, p.alt_name, p.comm_num, p.allow_comm, p.fixed, p.tags, e.news_read, e.allow_rate, e.rating, e.vote_num, e.votes, e.view_edit, e.editdate, e.editor, e.reason FROM " . PREFIX . "_post p LEFT JOIN " . PREFIX . "_post_extras e ON (p.id=e.news_id) WHERE {$stop_list} artist_name = '$artist_name' AND approve=1" . $where_date . " ORDER BY " . $news_sort_by_year . " " . $news_direction_by_year . " LIMIT " . $cstart . "," . $config['news_number'];
$sql_count = "SELECT FOUND_ROWS() as count";
code di atas masih untuk satu artis (2 struktur:artis dan artis_name)jadi rencana mau nambah 2 struktur lagi dengan nama artist2 dan artis_name2
$artist = stripslashes ($row['artist']);
$tpl->set( '{artistall}', $artist_name!='' ? '<a href="/index.php?do=artist&artist_name='.$artist_name .'"title="'.$artist.'">'.$artist.'</a>' : '');