mysql> show columns from mytable like "myfield";
+-------+-----------------------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-----------------------------+------+-----+---------+-------+
| myfield | enum('Add','Read','Delete') | YES | | NULL | |
+-------+-----------------------------+------+-----+---------+-------+
1 row in set (0.00 sec)
-----Original Message-----
From: Chris Lott [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 2:10 PM
To: Wee Chua
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Php Enum Field
> Sorry, my question was "how can I retrieve the preset Enum values from
> AccessRight field property?" Thanks.
Untested, but I think I remember:
$result = mysql_query("SHOW COLUMNS FROM main LIKE `colname`");
c
--
Chris Lott
http://www.chrislott.org/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php