Page 1 of 1

Display one question at a time from database

Posted: Tue Aug 03, 2010 3:43 am
by mamta_tech
Hi everybody

can u plz. suggest me process to accomplish my task like.....

"I would like to show one question at a time and provide a submit button and when the user submits it, i would like to show the answer and then proceed to the next question."

plz. help me.....

Thanks in advance....

Re: Display one question at a time from database

Posted: Tue Aug 03, 2010 10:47 am
by JakeJ
Ajax might be the way to go on this one.

As for the underlying query, just store the id of the question, pass it back in a query and grab the next one.

There's also plenty of quiz software available out there. No need to reinvent the wheel.