Hi friends what is the best way to show the mysql enum values while inserting and updating php page ?
name ENUM('small', 'medium', 'large')
edited:
actually I was asking for this .
I have a database field
`color` enum('red','blue','green','white') DEFAULT NULL,
and php form
<label for="color">Colors</label><br />
<input type="text" name="color" />
How do i display enum value on the php form from mysql database? Please help
If you have a enum field, the MySQL will return string values for it and you can set with integer and string values too. Simply doing this:
will give you full labels like
smallormediumorlargeAnd you can similarly update them too using full labels like this:
or numeric values like this: