I believe an associative array is what I need here. I have a column in an html table pulling from a MySQL DB via PHP which displays values from a questions/answer application so it would display something like 4,8,9,12,17 etc. I wanted to set up an associative array to correspond with those numbers such as 4=>I-A,8=>I-B,9=>I-C,12=>I-D,17=>II-C etc. and then have another column which displays the associative values.Would I need to use mysql_fetch_assoc for this?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Some help with PHP arrays
|
0 | 77 | January 2, 2009 | |
Can't seem to get this right! | 0 | 140 | July 17, 2009 | |
Associative Arrays in PHP Help | 0 | 128 | January 25, 2012 | |
Help me to display this array value | 0 | 79 | June 21, 2006 | |
For loop problem dealing with associative array
|
0 | 169 | July 16, 2011 |