homepage Welcome to WebmasterWorld Guest from 54.211.157.103
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
create new page if results is more than 10
tr8er8




msg:3809996
 1:35 am on Dec 18, 2008 (gmt 0)

im displaying news articles from a database, and im trying to get it so it displays a new page if i have more than 10 articles. so like the default page will just display 10 results, but if theres more, it displays the rest on the next page, and so on.

 

thewaiter




msg:3810039
 2:33 am on Dec 18, 2008 (gmt 0)

Hi tr8er8,
Since you didn't leave any code, I would Google "php pagination" and you will get tons of results, it's what I did when I needed a solution for that.

eelixduppy




msg:3810143
 5:53 am on Dec 18, 2008 (gmt 0)

[webmasterworld.com...]

A thread that might help you get started.

tr8er8




msg:3810492
 3:53 pm on Dec 18, 2008 (gmt 0)

i figured out how to do it thanks

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved