Click here to Skip to main content
15,666,947 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi all ! my name is sumit !
i am a programmer / designer / computer enthusiast !
i am programming my own blog my self ! , but am having this problem and its been a while since i tried to solve it !
the problem is that !
the problem is that i want to move older POSTS to a new page as in

an anchor that leads to a new page , e.g. page2.php

an i want only 10 posts per page ! i can handle the posts via db , but how to transfer older posts to the next page??????
Sergey Alexandrovich Kryukov 6-May-11 9:29am    
Not a big deal if you have a reasonable design, but how anyone can know that? It's yours. Offering some particular design may not work for you as you need to re-work your legacy...

1 solution

Only display posts that fall within a certain date range on the first page, and display older posts on the "other" page. there's no "transferring" involved. The posts that would be displayed on the first page would be determined when the page loads. I don't see how it's that difficult to get your head around that concept. How you would do it in PHP is another matter completely.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900