niko-cola
05-22-2008, 09:08 AM
I have to add an image which is saved in a folder.
The folder and name are specified in the database in the $path field.
I want to not display anything if there is no data in the $path field.
And to display the image if the address is specified in $path.
This code is not working...don't know why...
<img src='<? if (!$path) { } else { echo $path } ?>'>
The folder and name are specified in the database in the $path field.
I want to not display anything if there is no data in the $path field.
And to display the image if the address is specified in $path.
This code is not working...don't know why...
<img src='<? if (!$path) { } else { echo $path } ?>'>