![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/03/2007, 17:54
|
![Avatar de AbdelioR](http://static.forosdelweb.com/customavatars/avatar151928_1.gif) | | | Fecha de Ingreso: septiembre-2006 Ubicación: Tarragona
Mensajes: 926
Antigüedad: 18 años, 4 meses Puntos: 8 | |
Order By Rand() Limit 1 Hola, tengo un problema con esta instruccion:
$_pagi_sql2 = ("SELECT * FROM mapas ORDER BY RAND() LIMIT 1") or die(mysql_error());
No se si la estoy usando mal o que, pero me lanza este error:
Error en la consulta de conteo alternativo de registros: . Mysql dijo: 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 '() LIMIT 1' at line 1
No entiendo porque no me la acepta, alguien ve algun error? |