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.
PHP
1 2 3 4 |
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>" ; };
|