I have a problem that I think is more logical than the language itself, but if they can respond in ASP
Classic it helps a lot.
I need to create a function, where given an X record, and a quantity of records per page, indicate on which page the record appears.
Resultset example:
Página 1 | Página 2 | Página 3 |
id: 155 | Id: 863 | Id: 1024 |
Id: 154 | Id: 864 | Id: 1023 |
The idea is to create a function in which I would pass the query parameters to it, and the id needed, and it would return me on which page the ID would appear.
In case, if I passed the id: 863, it would return me to page 02. If it was 154, page 1 and so on.
Thank you in advance for your attention.