Se usi describe allora lo script va fatto diversamente
Codice PHP:$campi_not_null = array();
$query = mysql_query("describe tabella");
while ($row = mysql_fetch_assoc($query) ) {
$row['Null'] == 'NO' ? $campi_not_null[] = $row['Field'] : '';
}
echo '<pre>';
print_r($campi_not_null);

Rispondi quotando