$listCount = 10; // Number of list to show
$groups = pager_query('SELECT * FROM {user_groups}',$listCount);
// Render your list here..
while ($group = db_fetch_object($groups)) {
$grname[]= $group;
// Add the rows
....
....
....
}
//then show up the pagination link
$buildHtml .= theme('pager', NULL, $listCount, 0);
---
.....
return $buildHtml;
