Re: Dreaming Out Loud
here's the code you're looking. It's not tested but i think it will work..
$exploreimage=array( 1=>'[img=../location1.jpg]
',
2=>'[img=../location2.jpg]
', /*src = location of your jpeg file */
3=>'[img=../location3.jpg]
',
4=>'[img=../location4.jpg]
',
5=>'[img=../location5.jpg]
',
6=>'[img=../location6.jpg]
' /*the number of array elements you have should be equal to the number of location in your game */
);
$key=$ir['location'];
print "<center>".$exploreimage[$key]."</center>";