php - Can a enum value in phpmyadmin be like this? 'Readme'=>1 -



php - Can a enum value in phpmyadmin be like this? 'Readme'=>1 -

in this, see readme, value set 1

is possible?

edit; sorry. have site. it's navigation in database. need display nav items depening on users state, like, logged in , admin, blogger, not loggin, , indepenant. these work, move numerical values human readable. maintain script same. so, basicly, can create enum test equal 1, php array?

the interface you're using has no way of assigning symbolic names values describe.

however, can utilize lookup table can associate string name each numeric value. is, can go on store values -1, 0, 1, 2, 3 in database table, create another table map values strings. when want show human-readable names, bring together lookup table.

php mysql enums phpmyadmin

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -