From my understanding you want the query to change depending on what information the user provides?
in this case i think this is how you are best to do it ...
(i am just doing this off the top of my head - but you should get the idea).
I'll also assume you are using $_POST vars to pass the variabes to this page 😉 if not let me know and i'll correct the example
$query = "SELECT * FROM table WHERE"
if (isset($POST['fund_name'])) $query .= " f.fund_name = '$fund_name'";
if (isset($POST['fund_member'])) $query .= "AND f.fund_number = '$fund_number' "
and keep going to add all the parts you need.
I just done that quickly but it should start you off. Beware, i didnt take into account a few things - as i couldnt be bothered to be honest. For example, you need to take into account that there might be nothing passed in - mine doesnt look for that. Also if $fund_name IS blank then you will have an extra AND after the WHERE.
Hopefully that makes sense - i think i waffled a bit.
Also, before somebody attacks me for it... dont put POST vars straight into queries. 🙂
example purposes only.