Hi, My pagination isn't working. Can someone provide a bare minimum, very simple example of how to set up pagination? Thanks!
$pg = 2; $numPerPg = 10; $qid = mysql_query("SELECT * FROM blah LIMIT ".(($pg-1)*$numPerPg).",$numPerPg"); $num = mysql_num_rows($qid) if ($pg!=1) { echo "<a href=\"".($pg-1.)"\">prev</a>"; } if (($num/$numPerPg)>$pg) { echo "<a href=\"".($pg+1.)"\">next</a>"; } PHP:
I have customized a php file for db-connectivity and pagination could mail you if u can drop me your mail id .
I been using Zend's Paginator function in my scripts. http://framework.zend.com/manual/en/zend.paginator.html