Ver Mensaje Individual
  #16 (permalink)  
Antiguo 11/04/2007, 10:54
Avatar de AbdelioR
AbdelioR
 
Fecha de Ingreso: septiembre-2006
Ubicación: Tarragona
Mensajes: 926
Antigüedad: 17 años, 7 meses
Puntos: 8
Re: Order By Rand() Limit 1

Hola Nicolaspar.

Pues he probado lo que has dicho y queda asi la cosa:

Código PHP:
$_pagi_sql2 = ("SELECT * FROM mapas ORDER BY RAND() LIMIT 1") or die ("Error el archivo "__FILE__ ." en la línea " __LINE__ " MYSQL error N° " mysql_errno " <br /> Mysql Str" mysql_error()); 
Pero no lanza ese error :S:S, lanza el mismo de antes.

Código PHP:
Error en la consulta limitadaSELECT FROM mapas ORDER BY RAND() limit 1 LIMIT 0,1. Mysql dijoYou have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0,1' at line 1 
Eso no es muy raro tambien?