|
Posted by Garry on 10/07/40 11:51
I am trying to create a multiple choice test based on a MySQL database in
PHP and presenting just one question at a time for the user to read and
slect the correct answer. If the correct answer is selected a
congratulatory message is displayed and the correct count is incremented.
If an incorrect answer is chosen, then display the correct answer. In both
cases increment the question count and move on to the next question.
The main reason for storing the questions in MySQL is to create a generic
test wrapper that can be used for any kind of Multiple choice test.
Thank you if you have any idea on how I can process just onbe (Row/Question)
at a time.
"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:5f736$44a1925a$8259c69c$18887@news1.tudelft.nl...
> Garry wrote:
>> The problem is that when you do a while($row =
>> mysql_query_fetch_Assoc($Result)){} it will bring everything in at
>> once and no opportunity to iterate on an individual level.
>
>
> First: I don't know the function 'mysql_query_fetch_Assoc'.
> Second: No,it won't, it will give you an associative array of a single
> row.
>
> Maybe in stead of making some hasty posts, you might share what it is
> exactly what you want to accomplish. That might clarify your problem a
> bit.
>
> Grtz,
> --
> Rik Wasmus
>
>
Navigation:
[Reply to this message]
|