Forums / Cotonti / Support / shopsystem

ruben
#36761 2013-01-09 09:56

this is what i wanted, if prdct_extra4 is empty (or now i set '0' in the form were i add the photo's) there is a 'nophoto' image showing.

if($row1['prdct_extra4']=='0') 
{ $shopsystem_items .= "<td width=\"200px\"><img src=\"images/nophoto.jpg\" width=\"100px\" id=\"ads\" ></td>";}
 else { $shopsystem_items .= "<td width=\"200px\"><a href=\"datas/users/".$cfg['plugin']['shopsystem']['shopsystem_userid']."/".$row1['prdct_extra4']."\" class=\"fancybox\">
<img src=\"datas/users/".$cfg['plugin']['shopsystem']['shopsystem_userid']."/".$row1['prdct_extra4']."\" width=\"100px\" id=\"ads\" ></a></td>"; };