By: Jorge
Date: 2004-01-05
Time: 03:24
|
conditional
Hi,
I have a database like
ID Image_Path
1 photo1.jpg
2
3 photo2.jpg
I would like to:
Show image if image_path from data base exists
another image if image_path is empty
I've tryed many ways, and get all results unless the one I want :(
It should looklike something like:
<img src="[tbs_check;[blk1.image_path];ifempty = 'no_photo.gif';else '[blk1.image_path]']" width="100" border="1">
where am I wrong?
Thanks
Jorge
|
By: peirgwnael
Date: 2004-01-05
Time: 11:41
|
Re: conditional
Hello.
This syntax isn't working ?
php side
$tbs->MergeBlock("blk1",$db,"SELECT image_path FROM image WHERE id=xx");
html side
<img src="[blk1.image_path;ifempty = 'no_photo.gif']" width="100" border="1">
|
By: Jorge
Date: 2004-01-06
Time: 12:05
|
Re: conditional
It works! Thanks
I miss understood the syntax of that function
skrol29: you shoul'd probably insert this example into your help manual?
|
|
Posting in progress.
Please wait...
|