Hello,
I am new to the forum and php. I have a question many of you might find easy. I am trying to create a system where users can create their owns polls. I have it so they can type the number of answers they want with a for loop. I figured out the best to put the answers into a database is by using one field instead of many. So I would have a field called answers, and all the answers they wanted would go in there seperated by a space or something. Now my problem is, when then are going to fill in the answers (remember they typed in the number of answers and that exact number of textboxes showed up) I need to put all of their answers in a string, so: $string = $answer1 . "," . $answer2 . "," . $answer3. then this will go into the one answer field into the database. Now their number of answers would always vary so I'm guessing I would need to set it up in some kind of array that counts the number of varibles? I am stuck at this point. Any Ideas? I would greatly appreciate it!
Thanks,
Jason