I’m working on getting a forward/back button working through php for my wiki.
I have a custom pageID for whichever pages that I want the forward and back buttons to work on.
Say the custom pageID is called cID and starts from 1 and goes to 10.
How do I pull from the database what my current page’s cID is? Then to increment, would I just +1 to the cID? If the forward button is pressed, how do I check that there is no next page so that the user isn’t taken to cID 11? IF the cID is 0, how do I do nothing? Would I use an if/else statement where if == 0{/do nothing/}?