Código PHP:
<?php
include('paginator.class.2.php');
include("conexion.php");
$id= $_GET['id'];
$nombre= $_GET['nombre'];
$costo= $_GET['costo'];
$query = "SELECT COUNT(*) FROM items WHERE
id like '$id%' and
nombre like '%$nombre%' and
costo like '$costo%'";
$result = mysql_query($query) or die(mysql_error());
$num_rows = mysql_fetch_row($result);
$pages = new Paginator;
$pages->items_total = $num_rows[0];
$pages->mid_range = 9; // Number of pages to display. Must be odd and > 3
$pages->paginate();
$cadena = "select id,nombre,(select nombre from categorias where id=items.id_categoria),codigo,costo,marca,imagen from items WHERE
id like '$id%' and
nombre like '%$nombre%' and
costo like '$costo%' $pages->limit";
$result = mysql_query($cadena) or die(mysql_error());
echo "<center>";
echo "<table class='hovertable' border='1' width='800px' align='center' cellspacing='0' cellpadding='0'><tr>
<th>ID</th>
<th>CODIGO</th>
<th>NOMBRE</th>
<th>MARCA</th>
<th>LINEA</th>
<th>PRECIO</th>
<th>MODIFICAR</th>
<th>BORRAR</th>
<th>IMAGEN</th>";
while ($row = mysql_fetch_array($result))
{
$id = $_GET['imagen'];
$ruta = "imagen/" . $row['imagen'];
echo"<tr><td><span class='texto'>$row[id]</span></div></td>
<td><span class='texto'>$row[codigo]</span></td>
<td><span class='texto'>$row[nombre]</span></div></td>
<td><span class='texto'>$row[marca]</span></td>
<td><span class='texto'>$row[2]</span></td>
<td><span class='texto'>$row[costo]</span></td>
<td><span class='texto'><a href=\"modificar1.php?id=$row[id]\">Modificar</a></span></td>
<td><span class='texto'><a href=\"borra.php?id=$row[id]\">Borra</a></span></td>
<td><span class='texto'><img src='$ruta' width='100' height='100'/></span></td>
</tr>";
}
echo"</table>";
echo "</center>";
echo "<center>";
echo $pages->display_pages();
echo "<span class=\"\">".$pages->display_jump_menu().$pages->display_items_per_page()."</span>";
echo "<p class=\"paginate\">Pagina: $pages->current_page de $pages->num_pages</p>\n";
echo "</center>";
?>