I have create a field in MySQL like this: 

+---------------+---------------------------------+------+-----+---------+--
-----+---------------------------------+ 
| Field         | Type                            | Null | Key | Default |
Extra | Privileges                      | 
+---------------+---------------------------------+------+-----+---------+--
-----+---------------------------------+ 
| contact_pref  | enum('email','telephone','fax') |      |     | email   | |
select,insert,update,references | 

I can only get "enum" from mysql_field_flags(), I would like to get the
information in enum: "email", "telephone" and "fax"; as well as the default
value: "email". 
How can I do this?

Sorry, forget the tell at last message, I am using php4 to programming.

Reply via email to