ciao g.m sto tentando di usare il tuo script ma l'esecuzione della query mi genera un Resource id #5 dovrebbe essere un errore di sintassi $jos e $vm sono impostati correttamente...grazie mille di tutto
la query in questione è
$query = "SELECT amount,is_percent,tax_rate,vm_p.product_id myid,product_name, product_price, product_s_desc, product_sku, mf_name,product_availability,category_id,product_thumb_image,product_in_stock,product_available_date,vm_p_mf.manufacturer_id
FROM ".$jos.$vm."product vm_p "."LEFT OUTER JOIN ".$jos.$vm."product_price vm_p_p ON vm_p.product_id = vm_p_p.product_id
LEFT OUTER JOIN ".$jos.$vm."product_mf_xref vm_p_mf ON vm_p.product_id = vm_p_mf.product_id
LEFT OUTER JOIN ".$jos.$vm."manufacturer vm_mf ON vm_mf.manufacturer_id = vm_p_mf.manufacturer_id
LEFT OUTER JOIN ".$jos.$vm."product_category_xref vm_p_c ON vm_p_c.product_id=vm_p.product_id
LEFT OUTER JOIN ".$jos.$vm."tax_rate vm_t ON vm_t.tax_rate_id = vm_p.product_tax_id
LEFT OUTER JOIN ".$jos.$vm."product_discount vm_p_d ON vm_p_d.discount_id=vm_p.product_discount_id ";