Jump to content
Larry Ullman's Book Forums

Pagination


mint
 Share

Recommended Posts

There is a for loop which iterates and displays some links, the number of links depends on a database value which lies in range of 100's, is there any way to paginate the links to display 10 links one at a time through pagination.

 

Here is the code

foreach ($records as $record):
 echo CHtml::link('Transaction ID #'.$record->RBT_Transaction_ID,array('mobdistinct','mobtrans'=>$record->RBT_Transaction_ID)); ?>
<br>
<?php endforeach; 
?>

Link to comment
Share on other sites

 Share

×
×
  • Create New...