PHP and MySQL question
If you want to get all possible values for a SET column, you should use: SHOW COLUMNS FROM table_name LIKE set_column_name and parse the SET definition in the second column.
Ok, that's nice, but what the hell does it mean? Say I have a SET column in my database, with 10 values. I want to create an HTML select item, with the values being the values from the possible values in the SET column.
I found how to do this from items already entered. I found (sorta) how to get the possible values...but I don't know how to access them...
Any ideas?
MPEDrummer
__________________
My sig can beat up your honor student.
|