Answered
Help with multiple parameter search recordset
I have a mysql table being searched by two fields City and
State
using dreamweaver, I have set up a form with a text field as city and a list as state and I have them being passed with the get method.
The problem is on the results page, I have a recordset SELECT * FROM table name. What do I do with the WHERE, I have tried multiple configurations, and I can't get anything to work. I only want to search by two fields, city and state. The state has to match, but if the city is left blank, I still want to filter by state.
Can somebody help me or point me in the right direction, please?
using dreamweaver, I have set up a form with a text field as city and a list as state and I have them being passed with the get method.
The problem is on the results page, I have a recordset SELECT * FROM table name. What do I do with the WHERE, I have tried multiple configurations, and I can't get anything to work. I only want to search by two fields, city and state. The state has to match, but if the city is left blank, I still want to filter by state.
Can somebody help me or point me in the right direction, please?
