Spent all day trying to figure this out.
I'm adding to a script written by somebody else. So I'm stuck with what I has been done before me. Here's the problem.
A form passes a descriptive variable name to me. Say, $this_item.
I have built databases with related information to this, and other, products. Included in the database is a column that has these variables listed.
| real_name | form_variable | other information
|gadget_1 | this_item | blue
|gadget_2 | that_item | green
|gadget_3 | another_item | yellow
I want to take the posted variable - $this_item - and somehow do a query matching the entries in the column "form_variable".
Can I somehow change $this_item to the string "this_item" to use as a match?
Sam