creo q no esta nada bien como va! estoy probando con el de OKram
Código PHP:
<table border="1" style="width: 80%; margin: 10px;">
<tr>
<td><b>Todas las Imagenes en Galería</b></td>
</tr>
<?php
// Apertura de la conexión a la base de datos e Inclusión del script
// Instanciamos el objeto
$paging = new PHPPaging;
// Indicamos la consulta al objeto
$paging->agregarConsulta("SELECT * FROM usuarios ORDER BY id ASC");
// Ejecutamos la paginación
$paging->ejecutar();
// Imprimimos los resultados, para esto creamos un ciclo while
// Similar a while($datos = mysql_fetch_array($sql))
while($datos = $paging->fetchResultado()) {
echo '<tr>';
echo '<td><a class="highlightit" href="/imagenes/ver/'.$imagegallery[id_picture].'">
<img src="'.$imagegallery[filename].'" width="87" height="62"></img>
</a></td>';
echo '</tr>';
}
?>
</table>
<?php
// Imprimimos la barra de navegación
echo "<b>Navegación</b>: ".$paging->fetchNavegacion();
?>
Pero no c como agregar esto.
Código PHP:
require_once 'PHPPaging.lib.php';
// Query
$rs = db_query("SELECT *
FROM smf_gallery_pic
ORDER BY ID_PICTURE DESC
LIMIT 100", __FILE__, __LINE__);
$context['imagegallery'] = array();
while ($row = mysql_fetch_assoc($rs))
$context['imagegallery'][] = array(
'filename' => $row['filename'],
'id_picture' => $row['ID_PICTURE'],
);
mysql_free_result($rs);
$paging = new PHPPaging($link);
y tmo c si va bien!!