View Single Post
Old 04-11-2009, 12:27 AM   #36 (permalink)
WebSavvy
The Contributor
 
WebSavvy's Avatar
 
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
WebSavvy is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
It's not doing more things than what you need. It's doing exactlyy what you need. It just CAN do other things aswell.

I don't use anything other than MySQL aswell, which is why my example usage of the pagination class was based on MySQL - heck, I didn't even know how to use the class without MySQL. But my point still stands. Why use something that is limited to one thing, instead of using a more "allround" solution. It will work with your database. It will work later when you do use results from another source, for example an image folder on your host.

It's like.. buying a stereo, and there are 2 types of stereos, one that supports only CD, and then another that supports CD and DVD. They're the same price. You only use CD, so you buy the one that only supports CD, but then later, you wanna use DVD cause everything moves over from CD to DVD, then you'd need to buy another one. In this case you would need to recode your whole script just so it can support pagination for data other than results from a database.
Ahhh, I now see what you mean. Thank you for taking the time to explain things more clearly.

The code that I've written above is very old. In fact, I was very new to php at the time when I coded it -- only about 2 months into it.

I just have never gone back to recode it to where it's more up to date. I probably should take the time to do it though, but it'll have to wait until I'm finished with the 11,000 url entries I'm working on in my db at the moment.

I'll look into using your class as an example sometime next week perhaps. If I run into anything I'm not sure about I'll ask in that thread.
WebSavvy is offline  
Reply With Quote