View Single Post
Old 07-02-2012, 10:53 PM   PM User | #23
krispol
New Coder

 
Join Date: May 2012
Posts: 52
Thanks: 12
Thanked 0 Times in 0 Posts
krispol is an unknown quantity at this point
Quote:
Originally Posted by dan-dan View Post
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?
krispol is offline   Reply With Quote