par
Truc » 12 janv. 2006, 20:05
La commande "DESC" donne les caratéristiques d'une table et s'utilise tout simplement comme toutes les requetes INSERT,UPDATE, ... suffit de taper
DESC nom_de_la_table
regarde
ici pour un exemple d'utilisation et
ici pour la doc
sinon il y a aussi
mysql_field_name()
Pour l'utilisation de
mysql_num_fields() regarde la doc il y a un exemple.
La commande "DESC" donne les caratéristiques d'une table et s'utilise tout simplement comme toutes les requetes INSERT,UPDATE, ... suffit de taper
[php]DESC nom_de_la_table[/php]
regarde [url=http://www.nexen.net/scripts/details.php?scripts=379]ici[/url] pour un exemple d'utilisation et [url=http://dev.mysql.com/doc/refman/5.0/fr/describe.html]ici[/url] pour la doc :wink:
sinon il y a aussi [url=http://fr2.php.net/manual/fr/function.mysql-field-name.php]mysql_field_name()[/url]
Pour l'utilisation de [url=http://fr2.php.net/manual/fr/function.mysql-num-fields.php]mysql_num_fields()[/url] regarde la doc il y a un exemple.