![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/03/2009, 13:19
|
![Avatar de phercin](http://static.forosdelweb.com/customavatars/avatar289610_4.gif) | | | Fecha de Ingreso: febrero-2009 Ubicación: Pachuca Hidalgo
Mensajes: 150
Antigüedad: 16 años Puntos: 1 | |
Respuesta: De mayor a menor en la DB podrías intentar algo como esto
<?php
$sql = "SELECT CAMPO FROM TABLA ORDER BY CAMPO DESC";
$total_resultados = mysql_num_rows(mysql_query($sql)); // Total de resultados
$resultados_pag = 30; // Resultados por página
$total_pags = ceil($total_resultados/$resultados_pag); // Total de páginas
?> |