Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/09/2012, 12:39
Avatar de T4ke0veR
T4ke0veR
 
Fecha de Ingreso: agosto-2007
Ubicación: Quito - Ecuador
Mensajes: 1.720
Antigüedad: 16 años, 8 meses
Puntos: 28
Respuesta: Ordenar aleatoriamente al extraer datos

lo hice y fijate

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 'RAND() LIMIT 0, 3' at line 1

Código PHP:
mysql_select_db($database_cersol$cersol);
$query_Recordset1 "SELECT * FROM destacados ORDER BY id RAND()";
$query_limit_Recordset1 sprintf("%s LIMIT %d, %d"$query_Recordset1$startRow_Recordset1$maxRows_Recordset1);
$Recordset1 mysql_query($query_limit_Recordset1$cersol) or die(mysql_error());
$row_Recordset1 mysql_fetch_assoc($Recordset1); 
__________________
Diseño gráfico, Web, imagen corporativa, publicidad ...