Show/hide elements based on array

Hi,

I need to show some informative pictures based on array values.

I get the array from an SQL database which is used to populate a dropdown. Below I would like pictures of the possible options. So if theres an option to select apple - I would like a picture of an apple displayed below the dropdown.

Eg. if array contains a 1 it should show 1.jpg

Any help would be much appreciated

Kris