troubleshooting Question

MySQL limit and not so limited

Avatar of Nicholas
Nicholas asked on
13 Comments1 Solution185 ViewsLast Modified:
My basic table design is comment id, comment, previous comment id
Top level comments have Null for the previous comment id

This gives an easy nested reply system. The problem is I need to do paging on the comments in some way that I can limit the total number of comments on the page to 25 BUT if the nested comments exceed 25 then show them anyway but still limit the number of comments to a reasonable number

This is more help with the logic, because the more I think about it the more my brain becomes addled
Join our community to see this answer!
Unlock 1 Answer and 13 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros