Re: [PHP4BETA] PHP or MySQL?
| From: | Chris Adams | Date: | Tue, 18 Apr 2000 02:49:02 +0000 |
| Subject: | Re: [PHP4BETA] PHP or MySQL? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-13653@lists.php.net to get a copy of this message | ||
On 04/17/00 12:46:08 PM php4@developersdesk.com wrote:
>How do you retrieve the acceptable values for an ENUM?
DESCRIBE tablename column_name will return something like
SET('Foo', 'Bar', 'Baz', 'Quux');
Stripping off the first and last parts and using explode on the rest worked
wonders when I was using this on a registration form.