I created a next (and previous) button that increments the id by one when the button is clicked, my issue is that some id’s don’t exist anymore. How can I say “if id does not exist, go to next”.
Here’s the code that successfully increments by one when the button is hit
[php]if(isset($_POST[‘next’])){
$judgment_id= $judgment_id +1;
//Then say that if judgment_id was incremented from 106 to 107 and 107 no longer exists, how can that id be skipped?
}[/php]
very basic but it does the job…almost.