I am working on a forum system. I am trying to allow users to see the messages they made. For this link to work, I need to go to the pageon the topic in which they were posted, in which their message is contained, so bookmarks can work, etc. Since this is a new feature in the old forum, I would like to encode it so that the forum system does not have to keep track of each entry, but can simply populate this list automatically.
I know how to populate a list, but I need to do this:
Given the request, where will the line X appear in the request (guaranteed unique combination of identifiers)? Like in, how many lines will I have to compensate to get to it? This will be in a sorted request.
Ideally, I would like to do this using SQL, not PHP, but if this cannot be done in SQL, I think that is the answer. ^ _ ^
thank
source
share