# Help with displaying results from associative array

**URL:** <https://forum.kirupa.com/t/help-with-displaying-results-from-associative-array/306671>\
**Category:** Uncategorized\
**Created:** [March 19, 2010, 4:25pm UTC](https://forum.kirupa.com/t/help-with-displaying-results-from-associative-array/306671 "2010-03-19T16:25:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguync](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/webguync/32/2434_2.png) [@webguync](https://forum.kirupa.com/u/webguync)\
**Post date:** [March 19, 2010, 4:25pm UTC](https://forum.kirupa.com/t/help-with-displaying-results-from-associative-array/306671/1 "2010-03-19T16:25:54Z")

</div>

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?
