Hi.
I have a two tables:
- Clients
- Cities
Then in the search form I have three fields:
- A text input form to fill with the name of the client
- A select box to choose the city where they want to search(table cities)
- Another select box to choose the main business that the user wants to search for(businness is included in the clients table)
Depending on the choices of the form field it will make a search from the two tables.
Im thinking in doing multiple SQL querys depending on the user choices.
The problem is that maybe the user will not fill the input form with the name of the client, or maybe it will, but will not choose a city, etc. etc...
So will I have to do multiple ifs to show multiple sql querys depending on user choice? maybe i have a less confusing solution...
Thanks.