webguync Posted March 18, 2010 Share Posted March 18, 2010 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/application so they may look 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. Link to comment https://forums.phpfreaks.com/topic/195680-help-with-associative-array/ Share on other sites More sharing options...
webguync Posted March 19, 2010 Author Share Posted March 19, 2010 I have been doing some research and think this may be what I need, but not sure how to do the association part. http://php.net/manual/en/function.mysql-fetch-assoc.php Link to comment https://forums.phpfreaks.com/topic/195680-help-with-associative-array/#findComment-1028569 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.