faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 14 people (21%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

Can anyone offer advice on making a web poll that has a different no. of answers for each question?

Jan 26th, 2009 21:38
katie shein, healthy man, dman, urge overkill, mat brown, http://www.ttnr.org


hi,
i assume that you will be using some dbms for this. 
What i suggest is that you make 2 tables.
table1 will have all the questions with their ids as primary key
table2 will have all answers to all questions. When you store answers 
to say question 1, have id of question 1 with all possible answrs to 
this question.
hence you can identify all answers with a particular question.
for your calculation you can count the number of answers to a 
particular question and compute percentages or any other statistics.
cheers! mail me if you want any further ideas on this
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com
http://versicherungs101.blogspot.com
http://guiadeseguros.blogspot.com
http://verzekeringengids.blogspot.com
http://osiguranjevodic.blogspot.com
http://seguroguia.blogspot.com
http://ideide-cadouri.blogspot.com
http://gavoride.blogspot.com
http://donsideia.blogspot.com
http://ideeregalo1.blogspot.com
http://partideer.blogspot.com