You will need to jazz this up but more or less this should get the information you need that you can use on the tpl_product_music_info_display.php
with your templates and overrides using:
Code:
<?php
// bof: display record company name
$sql = "select p.products_id, pme.record_company_id, rc.record_company_name
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCT_MUSIC_EXTRA . " pme, " . TABLE_RECORD_COMPANY . " rc
where p.products_id ='" . (int)$_GET['products_id'] . "'
and pme.products_id = p.products_id
and rc.record_company_id = pme.record_company_id";
$chk_record_company = $db->Execute($sql);
echo '<div>' . 'Record Company: ' . $chk_record_company->fields['record_company_name'] . '</div>';
// eof: display record company name
?>
Bookmarks