for example, the blogs, how they divide the entries in pages?

i have kinda of a idea like if ur on page 2 and ur blog shows 5 post per page the $row=mysql_fetch_assoc would execute 5 times before starting to post, thats the only way i can think about, is there any other easy way to do it?

Recommended Answers

All 4 Replies

hi
i did not get that actually what you want to do.
means u want to display the blog and also want to give functionality to user for update and add new blogs right.

so you can do all this thing on one page just u need to call another page when user click on update blog or add new blog or you can call this page by the ajax also.


Thanks

hmm i know my explanation wasnt the best, what i meant was the classic next page button that shows the next X record from a database

Its called pagination.

Do a google search and it should provide you with everything you need.

hi
yes this called pagination this code you can find from the google serach else i give you because this all thing i did in my site ok

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.