/*
$conditions = array();
foreach($_POST['search'] as $key =>$value){
if(!$value) continue;
// nel caso di select, puoi mettere un option con value nullo
switch($key){
case 'velmot':
$conditions[] = 'velmot LIKE %'.mysql_real_escape_string($value).'%';
break;
case 'cat':
$conditions[] = 'cat LIKE %'.mysql_real_escape_string($value).'%';
break;
}
}
$sql_conditions = implode(' AND ', $conditions);
*/
print_r($_POST['search']);


facendo cosi mi esce questa solo

Query non valida: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1


mentre se commento acnhe la query

mi esce questo


Query non valida: Query was empty