Hi guys,
I am creating a poll like thing ware one can create a questioner including a question "question_1" and then multiple answers "question_1_1, question_1_2, question_1_3, question_1_4, question_1_5". assume that the "question_1_..." are the names of the input fields.
So what i want to know is what the best method (using php) is for taking that content that was submitted and placing it in a database table, so all of it can be in a single row and in a single field (within the same box).
I want to know if its possible to use arrays and if do how should i tackle this. i want to use arrays or something similar because there could be multiple questions and more or less answered (so can not be fixed).
I want to do it to some type of standard, so i know this method for future use.
I have been trying to figure our a way for a couple of days and sifted through many webpages and forums but cant find anything useful.
Any and all help will be appreciated.
I am creating a poll like thing ware one can create a questioner including a question "question_1" and then multiple answers "question_1_1, question_1_2, question_1_3, question_1_4, question_1_5". assume that the "question_1_..." are the names of the input fields.
So what i want to know is what the best method (using php) is for taking that content that was submitted and placing it in a database table, so all of it can be in a single row and in a single field (within the same box).
I want to know if its possible to use arrays and if do how should i tackle this. i want to use arrays or something similar because there could be multiple questions and more or less answered (so can not be fixed).
I want to do it to some type of standard, so i know this method for future use.
I have been trying to figure our a way for a couple of days and sifted through many webpages and forums but cant find anything useful.
Any and all help will be appreciated.
Comment