You are here: Re: PHP MySQL Single Iteration for data manipulation « PHP Programming Language « IT news, forums, messages
Re: PHP MySQL Single Iteration for data manipulation

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация