mySQL ENUM fields with PHP

admin

Administrator
Staff member
Hi,

Lets say I have an enum field:
account_type ENUM('Visa/MC','American Express','Discover','JCB')

and I would like to be able to extract the Visa/MC, American Express, etc.. and put them into an array so I can produce the output:

<select name=account_type>
<option value=http://www.phpbuilder.com/board/archive/index.php/Visa/MC>Visa/MC</option>
<option value=American Express>American Express</option>
<option value=>etc...</option>
</select>

Any help would be appreciated,

Thanks
Steve
 
Back
Top