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 > Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.