Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/11/2004, 19:28
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Dejalo asi:

$sql = mysql_query("SELECT id_img, AVG(voto) as porcentaje FROM calificar GROUP BY id_img ORDER BY porcentaje LIMIT 25") or die (mysql_error());