I would like create simply polls manager (PHP and Apache).
I want for example options:
- yes or no (boolean in database)
- select with own option (?)
- answerbox (varchar 5000)
Moderator have option create new pool. He want for example:
- two yes or no
- one select
- two answer box.
How can i keep this in database? I dont have any idea 🙁
Here is an example of how it can be implemented:
Two types of questions —
select(including yes/no questions) andtext:Table
selectsstores all options for the select question type:Table
pollsstores polls data — row for each answer with reference toselectstable for select question. Filled according to your example:Table
answersstores user’s answers. answer column references toselects.idfor select questions and toanswers_texts.idfor texts questions:The
answer_textstables stores answers to the text questions: