Ive built a forum a while back and now thats its getting some real use ive come across a major problem.
Since it was getting used more I added prev/next links to cut down on how many topics were being displayed. That went fine. It was when I tried to add it to the replys section of the threads.
The problem is probly at my fault for bad database structure. But there might be a way around it.
My topic table has the subject and message/comment in the same table. The problem is when I add the prev/next links it only works with my reply table.
So every page will have at the top the first reply aka the topic starters message. I know if I have the topic starters message go into the replys table everything would work. But I cant think of a reliable way for when someone makes a new thread for that thread ID to carry over to the reply table where the first message will be. I hope that this makes sense.
Any ideas?