if ($latestthread['iconid']==0) { $icon=""; } else { $icon="<img src=\"{*imagesfolder}/icons/icon$latestthread[iconid].gif\" border=0>"; }