Originally posted by ollmorris
my sql query hasn't recoignised the names (option1, option2 etc) of my textfields. How do I solve this?
Thanks
Look at your table design. How many fields do you have? If you are inserting in multiple records, then you want multiple queries. Each query should be structured as "INSERT into table (field1) values ($option$i)";
If you only have one field name and you are trying to insert each of these options as a new row, then you have to loop through the query until you get them all in there. If you seperate them by commas, like (option1, option2) then this assumes you are inserting the data in multiple fields. I don't know if this is what you are trying to do or not, but I'm just trying to point out where you might be going wrong.