php, construct dynamic mysql query best method?
am trying to construct a query string which will vary depending on what filters the user selects. This is going to be a for a search page, with a total of 26 possible criteria's so rather than create a long unnecessary query i would like to build it.

Could anyone please advice me on the best method for going about this?

am using php + mysql incase anyone didn't read the title.

Thanks very much 
php, construct dynamic mysql query best method?
===

am trying to construct a query string which will vary depending on what filters the user selects. This is going to be a for a search page, with a total of 26 possible criteria's so rather than create a long unnecessary query i would like to build it.

Could anyone please advice me on the best method for going about this?

am using php + mysql incase anyone didn't read the title.

Thanks very much 