Ver Mensaje Individual
  #12 (permalink)  
Antiguo 30/01/2012, 12:35
sergiop21
 
Fecha de Ingreso: diciembre-2008
Mensajes: 805
Antigüedad: 17 años, 10 meses
Puntos: 20
Respuesta: Consultar 2 tablas

entonces

Código PHP:

SELECT 
* from jos_vm_product_category_xref inner join jos_vm_product on jos_vm_product_category_xref.id_product = jos_vm_product.id_product 
$rs 
= mysql_query($sql);
echo 
$reg = mysql_num_rows(); 
bien, no le coloques condicion para ver si te trae registros.