Grazie Mik...ma non funge!

Scrivo il codice...avessi sbagliato qualcosa nel scrivere/capire le tue istruzioni:

Codice PHP:
            $filter_word$_POST['filter_word'] . "%";
            
$filter_grp$_POST['filter_grp'];
            
$filter_mark$_POST['filter_mark'];
            
$filter_type$_POST['filter_type'];

$result mysql_query("SELECT * FROM finiture WHERE 1=1 
and case when '
$filter_word' is null then '1' else fin_nome end= case when '$filter_word' is null then '1' else '$filter_word' end 
and case when '
$filter_grp' is null then '1' else fin_grp end= case when '$filter_grp' is null then '1' else '$filter_grp' end 
and case when '
$filter_mark' is null then '1' else fin_mark end= case when '$filter_mark' is null then '1' else '$filter_mark' end 
and case when '
$filter_type' is null then '1' else fin_type end= case when '$filter_type' is null then '1' else '$filter_word' end"); 
Cosa ne dite???