Ver Mensaje Individual
  #8 (permalink)  
Antiguo 09/08/2005, 15:53
Avatar de DINASEN
DINASEN
 
Fecha de Ingreso: marzo-2003
Mensajes: 997
Antigüedad: 21 años, 1 mes
Puntos: 1
No consigo que me funcione el cast simepre me pone You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'int) from capacidad' at line 1

El sql es

$consulta = mysql_query("SELECT * FROM $tabla order by cast(nombre AS int)") or die(mysql_error());

Un Saludo