I'm trying to create a NEXT button, this Next will show the next content, all of which are stored in the database and all have an ID.
Everything would be very simple if the IDs were sequential type 1 2 3 4 5 6 7, but it is not ... And that's where I'm having the problem ...
In the filtering of data (AS A CATEGORY), the IDs are no longer sequences of type 1 3 4 7.
I am using PDO, I filter the IDs of that category in question, but I can not create the NEXT button.