Quote:
Originally Posted by dan-dan
Sorry, I don't think I was completely following. You could simply unset the session when all the questions have been visited. Adding to Fou-Lu's code:
PHP Code:
else
{
// Everything has been visited. Put your end case scenario here.
session_unset();
header('Location: ' . $sRedirectTo);
exit();
}
|
YES! Exactly what I needed!

Huh, thank you a lot!
I would have one last and tiny question: now the code is written to take all the questions from the folder and randomly output them.
In what place and what would be the right code snipet to add to take, for example, only 10 questions out of 20?