Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Random Function

Status
Not open for further replies.

darksirius

Technical User
Nov 26, 2005
18
MY
Hi everyone, I'm very very new to Director MX but yet I need to finish a multimedia interactive project. I was wondering if there is a function of how to make question appearing in text mode randomly. If it can be made then can anyone tell me how to do the script. Thanx
 
Director MX? This is the Dreamweaver forum. To display 'random' questions you would:
First: Store the questions in a database - along with an ID field for each question.

Second: Generate a random number between the min and max numbers of your id field. The syntax varies depending on if you are using asp, php, or ColdFusion.

Third: Query the DB pulling the record with the ID you have randomly selected and then display it.

If you have no experience with dynamic data then I recommend you buy a book as a general tutorial is too complicated to be covered on this forum.

Cheers,

Bluetone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top