Hi, I was wondering how can i make a page list x amount of things and than shows the next Page> and <previous and etc feature.
Thanks
Next Page and Previous Function
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Next Page and Previous Function
'pagination' is probably what your looking for, although you give very little information in your post. If you search for that term on these forums or on the net you'll find loads of stuff
If your working from mysql , i'd use some sort of offset on your mysql query.
If your working from mysql , i'd use some sort of offset on your mysql query.
Code: Select all
$selectquery .= " LIMIT $limit OFFSET $offset ";
Re: Next Page and Previous Function
Hi yh thats right im using mysql to display listing, so i need like x amount per page and than the navigation to the other listing via the previous and next.deejay wrote:'pagination' is probably what your looking for, although you give very little information in your post. If you search for that term on these forums or on the net you'll find loads of stuff
If your working from mysql , i'd use some sort of offset on your mysql query.
Code: Select all
$selectquery .= " LIMIT $limit OFFSET $offset ";
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: Next Page and Previous Function
I recently posted this, which should be of some help. You should really search before making a new post.
Re: Next Page and Previous Function
Sorry but i didnt know what this technique was called.jayshields wrote:I recently posted this, which should be of some help. You should really search before making a new post.