Hello!
I didn't knew where to post this so i posted it here.
I am trying to make messages limit.e.g. i am having 100 messages in database and i want to display 10 messages per page and the next page will appear below the last post.Just like here in Daniweb.com.But i don't know how to do this please help me.
quickbird
0
Newbie Poster
Recommended Answers
Jump to Post
- Get the total number of messages per thread.
- Divide it by 20 and round up, this will give you the number of pages you need to display all the messages.
- Declare a variable to hold the number of messages already received for the current page (for example: $msg_count).
…
All 4 Replies
mvmalderen
2,072
Postaholic
quickbird
0
Newbie Poster
mvmalderen
2,072
Postaholic
mvmalderen
2,072
Postaholic
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.