PHP + HTML:
I have three list boxes the contents of which(when clicked) are placed into a variable in a sql SELECT string.
Something like this:
SELECT * FROM table where field1= '" & variable1 & "' AND field2 = '" & Variable2 &"' AND field3 = '" & Variable3 & "'"
This works well if all the list boxes are clicked BUT if I only click 2 or 1 of the list boxes nothing happens and I get a blank table.
I tried it with check boxes and get the same thing. The thing is I will be expanding the number of Lists to 12 but this will produce the same problem.
Very new to all of this so any suggestion much appreciated. Kind Regards jim