[support] paging in d6
spartaguy spartaguy
spartaguy300 at gmail.com
Thu Feb 11 00:27:09 UTC 2010
Hi,
I am trying to set up paging in D6 but dont actually have a pager ;)
In my example below I use the page as inline PHP code with no modules or
anything.
I want to have a pager after every 10 results displayed.
How can I do this? theme_pager??
Please help,
Paul
<?php
$sql="SELECT * FROM {catalog}";
$result = pager_query($sql, $limit = 10, $element = 0, $count_query = NULL);
while ($row = db_fetch_object($result))
{
$fields = array(); // define empty array
array_push($fields,$row); // push row object onto the array
print("Print Object <br>");
print_r($row);
print("<p><hr><p> ");
}
?>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100211/6ce181b2/attachment.html
More information about the support
mailing list