Next Page and Previous Function
Posted: Tue Aug 19, 2008 2:12 pm
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
Thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$selectquery .= " LIMIT $limit OFFSET $offset ";
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 ";
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.