CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Random questions in Quiz example

Print topic Send  topic

Author Message
sjb
Posted: 05/28/2002, 4:44 AM

Hi..

the quiz exampe is very good but I want to display questions by randomize .

How to ??

thansk for help
Nicole
Posted: 05/28/2002, 5:08 AM

Hello,
next question number is calculated on Question page->AnswersR form in After Insert event. AS you see next record is selected from recordset and question_id is stored in session. You can modify this part of code to select random question_id value in defined interval (between min and max question_id). In addition you should verify return random question_id to exists in db. Also you should check it to be not selected on one of previous steps (most tricky part on my opinion)
sjb
Posted: 05/28/2002, 7:09 AM

thanks Nicole ..
but Can you you write the code if you want

thank again

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.