Search function using multiple criteria?
Posted: Wed Dec 27, 2006 9:49 am
Hi all, I'm trying to write a search function using multiple criteria that will display all relevant results from the database, but I want to keep each field optional. I'm trying to do the SELECT statements without using a crapload of if (isset($varblah)) statements. I know I could use a switch, but again, I'd have to account for every permutation of the form fields. So, can anyone help me out here?
I'm sure this is a basic thing, but I can't sort it out. Any help would be appreciated.
I'm sure this is a basic thing, but I can't sort it out. Any help would be appreciated.