So what your saying is is that you have 2 tables, the first table holds a foriegn key value back to another table, the values in table 2 are the values that you want to display in your dropdownbox? If this is the case and I assume your fk is the pk of table 2, make sure that the values of your dropdownbox are the pk's of table 2, because those are what you should be inserting into table 1; the error you are getting, for whatever reason, means that the variable you are passing into your INSERT statement is empty.
"The one language all programmers understand is profanity."
|