ciao ho questa query:
Codice PHP:
$query_all = "SELECT * FROM #__tabmart ax ";
$query_all .=" LEFT JOIN #__tabmart_category v ON ax.cat_id = v.id ";
mi estrapolo dalla prima tabella i campi così:
Codice PHP:
$db->query( $query_all );
$res = $db->record;
foreach( $res as $vendor) {
if( $_REQUEST['Itemid'] == $vendor->product_id ) {
$author_id=$vendor->product_id;
$authorcat=$vendor->cat_id;
nella seconda: tabella #__tabmart_category
ho il campo cat_title
ma se faccio $author=$vendor->cat_title;
author rimane vuoto
qual' è il modo giusto per recuperare un campo dalla tabella left join???
grazie dell'aiuto