Código PHP:
mysql_select_db($database_conexion, $conexion);
$rand = rand();
$query_catalogo_imag = "SELECT * FROM establecimientos ORDER BY rand($rand)";
Código PHP:
<tr>
<?php
$startRow_catalogo_imag = $startRow_catalogo_imag + 5;
$query_limit_catalogo_imag = sprintf("%s LIMIT %d, %d", $query_catalogo_imag, $startRow_catalogo_imag, $maxRows_catalogo_imag);
$catalogo_imag = mysql_query($query_limit_catalogo_imag, $conexion) or die(mysql_error());
$row_catalogo_imag = mysql_fetch_assoc($catalogo_imag);
?>
<?php do { ?>
<td><div align="center"><a href="detalles_libros.php?recordID=<?php echo $row_catalogo_imag['ID']; ?>"><img src="<?php echo $row_catalogo_imag['url']; ?>" / ></a></div></td>
<?php } while ($row_catalogo_imag = mysql_fetch_assoc($catalogo_imag)); ?>
</tr>
Gracias