Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/02/2012, 15:22
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 8 meses
Puntos: 31
Respuesta: Minimo, maximo y nombre en PHP

y si haces un while

Código PHP:
<?php
$query2 
mysql_query("SELECT nombre, MIN(precio) FROM productos GROUP BY nombre"$conexion) or die(mysql_error());
while(
$row mysql_fetch_array($query2)){
echo 
"Pro name: "$row['nombre']. "  $" .$row['MIN(precio)']."<br />";
}
?>
__________________
╬-----╬
║☺₧☻║
╬-----╬