I have approx 12 fields being returned to a user from a table within a MySQL database.
One of the tables will always contain one of three possible values (Sold, Rejected or Outstanding) within the status field. When I return all the information to the user, I would love to be able to replace the status field with an image. So if it was marked as Sold, a tick would be there, or an X for Rejected, for example.
I imagine I need to use an array or something but I've no idea and was hoping maybe one of you genii could help?
One of the tables will always contain one of three possible values (Sold, Rejected or Outstanding) within the status field. When I return all the information to the user, I would love to be able to replace the status field with an image. So if it was marked as Sold, a tick would be there, or an X for Rejected, for example.
I imagine I need to use an array or something but I've no idea and was hoping maybe one of you genii could help?