flaab Posted December 26, 2007 Share Posted December 26, 2007 Hi :-) I'll go straight to the point; MySql has a "native" ENUM|SET datatype that allows you to insert only certain values, and those values can be retrieved from the Php code to create a combobox. Postgres does not have such datatype, so it has to be "emulated" like this... create table foo ( enumField varchar (check enumField in ('value1', 'value2')) ); So far so good but...How can I retrieve those values from my Php code to create a combobox? :-) Thx! Quote Link to comment https://forums.phpfreaks.com/topic/83230-postgres-and-php-getting-values-from-a-fake-enum-field/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.