how to recognize ENUM column in table?
| From: | Afan Pasalic | Date: | Thu, 06 Dec 2007 18:38:10 +0000 |
| Subject: | how to recognize ENUM column in table? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-265524@lists.php.net to get a copy of this message | ||
hi,
I use the code from
http://www.php.net/manual/en/function.mysql-fetch-field
(example #1)
I'm getting everything I need but can't recognize if the column is ENUM() type?
e.g. column "status" is ENUM('0','1') or ENUM('live','hidden','archive') or something like that. I want to recognize this column and then create a form with radio buttons
o 0 o 1 or
o live o hidden o archive
is it possible?
thanks.
-afan