View Single Post
Old 07-22-2003, 12:40 AM   #1 (permalink)
mpedrummer2
Insane
 
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.
mpedrummer2 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73