if ($attach == 1) { $displayattach = "<small><a href=http://www.sandiegopegasus.com/forum/attachment.php?postid=".$postid.">Download attachment</a>"; } else { $displayattach = ""; }