15 Informations sur les attributs (III) if($result = mysql_query(SELECT * FROM forum) ) { for($i=1; $i<= mysql_num_fields($result); $i++ ) { echo mysql_field_name($result, $i-1),,, mysql_field_len($result, $i-1),,, mysql_field_type($result, $i-1),,, mysql_field_flags($result, $i-1),,, mysql_field_table($result, $i-1), ; } } else die(Erreur de base de données.); Résultats : nomtailletypedrapeauxtable id20intnot_null primary_key unsigned auto_incrementforum title255blobnot_null blobforum mesg65535blobnot_null blobforum hits8intnot_null unsignedforum author_idx20intnot_null unsignedforum date19datetimenot_nullforum Définition de la table : CREATE TABLE forum ( id bigint(20) unsigned auto_increment, title tinytext NOT NULL, mesg text NOT NULL, hits mediumint(8) unsigned NOT NULL, author_idx bigint(20) unsigned NOT NULL, date datetime NOT NULL, PRIMARY KEY(id) )