xyn Posted October 6, 2006 Share Posted October 6, 2006 Hey,I've got a small script, which basically gathers informationfrom my table which will be shown on my "Biographies" pagethe thing is it is aimed to have 8 biographies per page, I wantthe database to go from id 1 -> the last ID.The problem is I have scripted it to only show biographieswhich are accepted by a moderator.Example; each Line repreisents when clicked ...extention number (ie: 10,15,20):< Prev | 1 | 2 | 3 | 4 | 5 | ...10 | Next >< Prev | 10 | 11 | 12 | 13 | 14 | ...15 | Next >< Prev | 15 | 16 | 17 | 18 | 19 | ...20 | Next > Link to comment https://forums.phpfreaks.com/topic/23224-sql-pagination/ Share on other sites More sharing options...
php_coder_dvo Posted October 6, 2006 Share Posted October 6, 2006 last_page = total_page / view_per_pageuse ceil function to get the value as a whole number. Link to comment https://forums.phpfreaks.com/topic/23224-sql-pagination/#findComment-105286 Share on other sites More sharing options...
xyn Posted October 6, 2006 Author Share Posted October 6, 2006 I'm confused, how Am i supposed to use that? :s Link to comment https://forums.phpfreaks.com/topic/23224-sql-pagination/#findComment-105289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.