Re: [PHP] Re: displaying database results with forward and back buttons

2004-07-11 Thread Curt Zirzow
* Thus wrote John Taylor-Johnston: > Finally something I can give back, made by my little lonesome with no help :) heh.. we all started somewhere. > > > I have a query that returns lots of rows so I want to display the results in > > blocks of 25 or so on my web page and have forward and back b

Re: [PHP] Re: displaying database results with forward and back buttons

2004-07-11 Thread i sidhu
The main part of code i m using for Forward and Backward is, if($page > 1) { $prev = ($page - 1); echo "< "; } for($i = 1; $i <= $total_pages; $i++) { if(($page) == $i) { echo "$i "; } else { echo "$i "; } } // Build Next Link if($page < $total_

[PHP] Re: displaying database results with forward and back buttons

2004-07-11 Thread John Taylor-Johnston
Finally something I can give back, made by my little lonesome with no help :) > I have a query that returns lots of rows so I want to display the results in blocks > of 25 or so on my web page and have forward and back buttons to navigate the results. include it first: include("settings_limit.i