I have two file one called show.php and one is show.tpl.
On show.php it has this code
//-----------------------------------------
// Fetch Media
//-----------------------------------------
$db->query("SELECT files.*, categories.*, users.id, users.username FROM categories, files LEFT JOIN users ON files.mid=users.id WHERE $search_addon files.category_id=categories.category_id AND files.type != 'plug' AND $v $ss ORDER BY files.featured DESC, files.$sort LIMIT $set_limit, $per_page");
$lists = $db->fetch_rows();
$media_num = $db->get_num_rows();[/QUOTE]
On show.tpl it has this code
<table align="center" border="0" cellpadding="4" cellspacing="1" class="admin_table">
<tr class="main_row_color">
<td style='width:1%;'><a href="{$siteurl}/admin.php?view=admin_media&sort=file_id"><b>ID</b></a></td>
<td style='width:30%;' colspan="2"><a href="{$siteurl}/admin.php?view=admin_media&sort=title"><b>Title</b></a></td>
<td style='width:20%;'><a href="{$siteurl}/admin.php?view=admin_media&sort=category_id"><b>Category</b></a></td>
<td style='width:15%;'><a href="{$siteurl}/admin.php?view=admin_media&sort=mid"><b>Uploader</b></a></td>
<td style='width:10%;'><b>Options</b></td>
<td style='width:1%;'><b>Select</b></td>
</tr>
Together when loaded it shows the table below
ID Title Category Uploader Options Select
My question is how can I get it to show artist from "files" table in my database for it to show what I want below?
ID Title Artist Category Uploader Options Select