![]() | |||||||
Pagination Hi, I have this page: Code:
I hope you all understand, and what i am trying to do is intergrate pagination, but i dont know where the script will go and how to use the Code:
bit which i need. Thanks Steven |
I use PEAR :: Pager now because i'm just totally in love with PEAR ... but this is how I used to do it (i got this off a tutorial a long time ago and modified it) PHP Code: |
This displays what i want but the only problem i am having is that my site works using ?id= and when i go to page 2 it goes back to the default page and shows the url as http://www.x6core.com/?page=2 I am using the code in the post above, how can i change this? |
I just edited it ... its a simpler way (just adding your variables like the id manually) of doing it but not the ideal way |
its still not working, if i click on next it says ?id=5&page=2, and also if i click on it and edit the code to ?id=photoshop&page=2 it still doesnt work. I worked it out that my code already says Code:
but if i take it out where does yours tell it what $id is? |
i'm confused, are you using category=photoshop or id=someid. Either way, you can enter whatever every varaibles you want there edit: spelling |
ok, i have fixed it any for anyone else who wants to know. Code:
|
Just a note PHP Code: Wouldn't recommend using that. Try this instead PHP Code: |
yup very true, forgot the intval... |
What does that piece of code do? |
Same thing as saying PHP Code: but alot cleaner page = condition ? true : false; |
| All times are GMT -7. The time now is 01:53 AM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0