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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.