Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/06/2010, 14:46
Avatar de lukas4
lukas4
 
Fecha de Ingreso: octubre-2008
Ubicación: frente al pc
Mensajes: 496
Antigüedad: 15 años, 6 meses
Puntos: 12
Respuesta: Separar Resultados de una Consulta

creo que algo asi te servira:
Código PHP:
Ver original
  1. $campo1[] = array();
  2. $campo2[] = array();
  3. $campo3[] = array();
  4. //asi hasta que tengas los campos que ocupes :P
  5.  
  6. $query = "SELECT * FROM vtiger_products
  7. INNER JOIN vtiger_productcf ON vtiger_products.productid=vtiger_productcf.product id
  8. WHERE vtiger_productcf.cf_601=0 AND vtiger_products.productcategory='Asistencia'";
  9. $resultado = mysql_query($query, $conexion) or die (mysql_error());
  10. $total = mysql_num_rows($resultado)
  11. $i=0;
  12. $while($row=mysql_fetch_array($total)){
  13.   $campo1[$i] = $row['productname'];
  14.   $campo2[$i] = $row['elSiguienteCampo'];
  15.   $campo3[$i] = $row['yAsiTeVas'];
  16. }
y luego ya podras accesar a esos datos mas facil
__________________
http://situcomo.blogspot.com
Karma is a Bitch... they said