I have two tables in a DB. One called 'residential' and one called 'featured'.
A field called 'features' in the residential table is returned in a string of up to 255 chars.
Each feature code is 3 chars long and starts with a letter A-Z and is followed by a number 01-99. A typical feature string would be A01B03B05C02.....
I need to somehow use the 'features table' to convert the residential table features field properly so that the results display properly. The Features convert a code "A01" to words "Bed & Breakfast".
The features table has two fields and looks like this....
code long_name
A01 Bed and Breakfast
B03 Diner
B05 ham sandwich
C02 minime
So, I guess....my question is.....(man, this is hard to explain).
How can a string in the 'features' field in 'residential' table that looks like this:
A01B03B05C02
Give me results like this
Bed and BreakfastDinerHam Sandwichminime