I need to create a simple poll for users and stumped on saving the results when user submits the poll.
Poll hasMany Question
Poll hasMany Result
Question hasMany Choice
Pretty simple, but how do you save the results since viewing the poll creates a form to save Poll?
View the poll/$id pulls all the questions and choices for each, but how / where to save the results?
What would be the correct table for this? poll_results? results?
Thanks,
Dave
No comments:
Post a Comment