I have a web application which is importing data from an Oracle table. Some of this information, such as a "status" field, only outputs numeric values....I have to assign a label to that value on the GUI end.
I've stored a matching set of values and corresponding labels in a MySQL table.
What I haven't figured out is how to match up and display the correct label.
So I have table rows like this from Oracle:
Title..............Status
ExampleA..........2
ExampleB..........4
ExampleC..........3
and labels like this from MySQL
val....label
2......Active
3......Expired
4......Pending
and I want this:
Title..............Status
ExampleA..........Active
ExampleB..........Pending
ExampleC..........Expired
I don't want to query the MySQL table for each printed row. So I think I need feed the MySQL table into an array, and then somehow match each row's status val to the corresponding array element. Just not sure how to code it.