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 | |
---|---|---|---|---|
PHP/MySQL assoc array, pulling data | 0 | 89 | March 6, 2005 | |
PHP/MySQL assoc array, pulling data
|
0 | 72 | March 6, 2005 | |
PHP MySQL question...Noob! | 0 | 58 | October 24, 2005 | |
Grabbing a bunch of rows as a array
|
0 | 72 | June 21, 2004 | |
Grabbing a bunch of rows as a array
|
0 | 103 | June 21, 2004 |