SELEZIONARE';
while ($dato = mysql_fetch_array ( $res )) {
$prod.='';
}
$query = "SELECT id, nome, produttore FROM wf_materiale WHERE categoria = '$categoria' AND attivo = 1 ORDER BY produttore, nome";
$res = mysql_query( $query, $DB_ID );
$mat='';
while ($dato = mysql_fetch_array ( $res )) {
$mat.='';
}
$v_result = array('status'=>'OK', 'prod'=>$prod, 'mat'=>$mat);
$json = json_encode($v_result);
echo $json;
?>