Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-28-2012, 06:51 AM   PM User | #31
mfoland
New Coder

 
Join Date: Dec 2010
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
mfoland is an unknown quantity at this point
On the last part of the script, I adjusted the +1 to * 20. The only thing is the number will not bold.
mfoland is offline   Reply With Quote
Old 11-28-2012, 06:58 AM   PM User | #32
mfoland
New Coder

 
Join Date: Dec 2010
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
mfoland is an unknown quantity at this point
I'm ok with how the pagination is now 1-20 21-40 etc.. but if I do page=20 I'd like for the 21-40 to bold.. I'm stuck at this point!
mfoland is offline   Reply With Quote
Old 11-28-2012, 08:31 PM   PM User | #33
mfoland
New Coder

 
Join Date: Dec 2010
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
mfoland is an unknown quantity at this point
I'll consider this RESOLVED. I changed to this:

PHP Code:
if ((($currentpage  20) + 20) + 1)) 
and then the echo for the link went to

PHP Code:
$current /20 +20
Solution solved! Just needed some sleep and coffee

Thanks!
mfoland is offline   Reply With Quote
Old 11-28-2012, 08:39 PM   PM User | #34
mfoland
New Coder

 
Join Date: Dec 2010
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
mfoland is an unknown quantity at this point
Thumbs up

Admin can change this to RESOLVED
mfoland is offline   Reply With Quote
Old 11-29-2012, 05:04 AM   PM User | #35
paulinetaylor85
New Coder

 
Join Date: Oct 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
paulinetaylor85 is an unknown quantity at this point
PHP Pagination

The codes shown here are very much helpful to add pagination, which code will have to add if want the total count?
paulinetaylor85 is offline   Reply With Quote
Old 11-29-2012, 06:05 AM   PM User | #36
mfoland
New Coder

 
Join Date: Dec 2010
Posts: 28
Thanks: 4
Thanked 0 Times in 0 Posts
mfoland is an unknown quantity at this point
See on page 1 where I had my database using a function to get stuff. That'll get you started.
mfoland is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:34 PM.


Advertisement
Log in to turn off these ads.