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