hi,
I am pretty new with mysql. Can't figure out the most efficient way to do a mysql search in the next situation.
Have a form with about 6 fields among which 2 comboxes and one to directly search for a reference number. When the user doesnot choose to specify a value for the comboboxes the value is set to "all".
Is it possible to do the search from this form with one select statement?
I can't figure out how to get the correct search results search with the combobox values set to "all"? The same for empty form fields, how do I cancel them out for the search?
Hope anyone can help me with this?
thanks,
Ron
I am pretty new with mysql. Can't figure out the most efficient way to do a mysql search in the next situation.
Have a form with about 6 fields among which 2 comboxes and one to directly search for a reference number. When the user doesnot choose to specify a value for the comboboxes the value is set to "all".
Is it possible to do the search from this form with one select statement?
I can't figure out how to get the correct search results search with the combobox values set to "all"? The same for empty form fields, how do I cancel them out for the search?
Hope anyone can help me with this?
thanks,
Ron