fetchNum('SELECT id FROM co_preventivi WHERE idstato='.prepare($id_record)); $attr = ''; /* if ($preventivi == 0) { $attr = ''; } else { $attr = 'readonly'; echo '