Jump to content


Photo

A comprehensive guide to pagination?


  • Please log in to reply
6 replies to this topic

#1 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 05 July 2006 - 10:15 PM

I have been looking around for quite some time now to find a comprehensive guide on pagination. I’ve went through many guides and always get lost! So, if anyone knows the url to a complete, comprehensive, step by step guide to pagination, please, can I have the link? Alternatively, if you want, you could type up a short script that I could connect to a database and figure it out on my own.

Thanks!

-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 06 July 2006 - 04:57 AM

there are 2 pagination tutorials on this very site!

http://www.phpfreaks...orials/73/0.php

what do you mean by 'comprehensive?' i have no idea what your level of php understanding is, so i think it would be easier for you to explain what part you don't understand, and we can help you from there.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 07 July 2006 - 01:38 AM

Great thanks! Thats what I wanted! I just couldnt seem to find a guide that explaind the code step ny with a working example that was clear. Either they where worded funny and I didnt understand or it was just little tiny blocks of codes.

Anyways I understand it now.

Is there a way to do this without useing "GET['something']"? I don't like the ?something=1 at the end of the url.
-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...

#4 hackerkts

hackerkts
  • Members
  • PipPipPip
  • Advanced Member
  • 593 posts
  • LocationSingapore
  • Age:18

Posted 07 July 2006 - 03:04 AM

You can change something to page
So it will be ?page=1 etcs..

Regards,
hackerkts

To be a coder, you must learn how to think and not to give up so easily.


#5 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 07 July 2006 - 03:30 AM

i think he meant getting rid of the variables passing in the url overall, not just changing the name.

umm... well no, not really. well, i suppose you could like, make a form with only submit buttons and have it generate submit buttons instead of the pagination links, and do the post method in the form... i've never actually tried this myself, as i've been content with using the get method with paginations, but i don't see why doing it that way wouldn't work..
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#6 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 07 July 2006 - 10:27 AM

You could use mod_rewrite to make it look in another way.

#7 bobleny

bobleny
  • Members
  • PipPipPip
  • Advanced Member
  • 429 posts

Posted 09 July 2006 - 01:56 AM

Well, thanks anyways, im not going to kill my self over this...
*slice*- thump.

lol jk
-- www.firemelt.net --
First do me a favor and read this: JavaScript is NOT Java - Then read this: www.php.net - When your done with that, read this Topic
After that, floors open. I and anyone else will be MORE than happy to answer YOUR query! [Topic Solved]
Cheer up, the worst has yet to come...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users