Page 1 of 1

Next Page and Previous Function

Posted: Tue Aug 19, 2008 2:12 pm
by ravx
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

Re: Next Page and Previous Function

Posted: Tue Aug 19, 2008 3:21 pm
by Christopher
Search these forums for 'pagination' or 'paginate'

Re: Next Page and Previous Function

Posted: Tue Aug 19, 2008 3:23 pm
by deejay
'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 "; 
 

Re: Next Page and Previous Function

Posted: Tue Aug 19, 2008 3:49 pm
by ravx
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 "; 
 
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.

Re: Next Page and Previous Function

Posted: Tue Aug 19, 2008 5:33 pm
by jayshields
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

Posted: Wed Aug 20, 2008 6:24 am
by ravx
jayshields wrote:I recently posted this, which should be of some help. You should really search before making a new post.
Sorry but i didnt know what this technique was called.