Uff estoy atascado, no me sale. A ver si me puedes echar una mano. He probado así:
Código PHP:
$sql2="SELECT * FROM x WHERE x ORDER BY fecha, hora DESC LIMIT 0,40;";
$result2=mysql_query($sql2,$conexion2);
$row=mysql_fetch_array($result2);
$row=array_reverse($row);
while ($row)
También he probado así:
Código PHP:
$sql2="SELECT * FROM x WHERE x ORDER BY fecha, hora DESC LIMIT 0,40;";
$result2=mysql_query($sql2,$conexion2);
while($row=array_reverse(mysql_fetch_array($result2)));
y he probado
Código PHP:
$sql2="SELECT * FROM x WHERE x ORDER BY fecha, hora DESC LIMIT 0,40;";
$result2=mysql_query($sql2,$conexion2);
$row=mysql_fetch_array($result2);
while(array_reverse($row))
Y no funciona. Qué estoy haciendo mal?