Hello, trying to work out the solution to having my code display a particular images depending on the value the xml returns…
> <property>
> <status>**The returned values/varibles are : available, sold, let, under offer, sold subject to contract.**</status>
> </property>
I’m using <?php echo $aRow->status; ?> to return a value, now need to display an image depending on the returned values. Just cant work out the if/else!
Thanks in advance
If you can’t do that, either link the status code to the image name in a database table so it’s easy to change later, or look at the switch() construction.