Simple Usage: -------------
<?php require_once("a123z.class.php"); $a123z = new a123z(); $a123z->total = 100; // the number of records $output = $a123z->output(); echo $output; ?>
1 2 3 4 Next > Last >> Advanced Usage: ---------------
<?php require_once("a123z.class.php"); $a123z = new a123z(); $a123z->total = 100; // the number of records. $a123z->max = 10; // max results to be displayed per page. $a123z->url = "class_test.php?foo&foo2"; // URL to be the target of the links. $a123z->page = $_GET['page']; // variable represents the current page. $a123z->template = array( // menu template 'First' => '<< First ', // First page link 'Previous' => '< Previous ', // Previous page link 'Page' => '[PAGE] ', // Pages numbers link 'CurPage' => '[CurPAGE] ', // Current Page Link 'Next' => ' Next >', // Next page link 'Last' => ' Last >>', // Last page link ); $output = $a123z->output(); echo $output; ?>
1 2 3 4 5 6 7 8 9 10 Next > Last >>