I have a while() statement that uses a counter.
$counter = 0;
while($counter < $total){
code;
$counter++;
}
I want to stop after each time the code is executed and require the user to click a link to increment the counter ($counter++😉 and do the while comparison again to see if the code needs to be executed.
In other words, the code executes, the page shows a link, I click the link, the code executes again.
Is there a way to modify the code above to add this functionality?
Brian