Database is best because it gives you much more flexibility and allows you to reuse the code. The percentage is the number of right answers divided by the number of questions time one hundred.
correct/total*100 On Thu, Mar 3, 2011 at 3:50 PM, John Eubanks <[email protected]> wrote: > > I am building an online test (actually, several of them) and need some > help. Would it be easier to build a db with the questions, answers, etc. or > just set them manually using cfset? If using the second method, how would > you display a percentage showing the grade for the test? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342736 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

