Display one question at a time from database

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
mamta_tech
Forum Newbie
Posts: 1
Joined: Tue Aug 03, 2010 3:40 am

Display one question at a time from database

Post 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....
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Display one question at a time from database

Post 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.
Post Reply