Forum Moderators: coopster
how are you storing the questions? I realize they are in mysql but do you have answers and question numbers along with it?
Are the question numbers just text in the html page?
Are the questions actually on seperate html pages?
when you click next does it go to a different page or just pass some parameter to the same page that selects the next question in the db?
2. The question numbers are generated randomly and then i want to print one question per page.
3. However when i try this using a for loop all the questions appear on the same page.
How could i possibly tell php to print each question on a separate page...
Thank u for ur help.
I would think you could set a cookie for the user and store in the cookie what questions they have already seen.
you can serialize the data before you stick it in the cookie, then unserialize it on the next page and use it in your query.
maybe something like
SELECT * FROM whatevertable where question_id not in (3,5,17);
or whatever row numbers they have already seen
why do the questions have to be random?