creating a input parser and countdown timer for trivia aplic
Posted: Thu Dec 12, 2002 6:43 pm
I need to learn how to make an input parser for a trivia application i am making. I need to take the users input, and on the following page display if they answered correctly or not, and if not i will simply output the correct answer..
i am doing this in an interesting way.. i have a mySQL database set up with a table for the questions and answers...
anoter table is set up for the player information such as login name, pass, and stats..
all i really need to know how to do.. or need some help determining how to do, is parse the users input and compare it to the answer in my database.. ( in other words i want it to be a fill in the blank style trivia game.. )
ALSO.. i need help with how i can implement a timer for it... like a countdown from 15 or 30 sec. to 0.. then load next page if there is no answer given.. =)
thank for you help everyone =)
i am doing this in an interesting way.. i have a mySQL database set up with a table for the questions and answers...
anoter table is set up for the player information such as login name, pass, and stats..
all i really need to know how to do.. or need some help determining how to do, is parse the users input and compare it to the answer in my database.. ( in other words i want it to be a fill in the blank style trivia game.. )
ALSO.. i need help with how i can implement a timer for it... like a countdown from 15 or 30 sec. to 0.. then load next page if there is no answer given.. =)
thank for you help everyone =)