$result2 = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id='".$data['post_id']."'"); if (dbrows($result2) != 0) { $attach = dbarray($result2); if ($attach['attach_ext'] == ".gif" || $attach['attach_ext'] == ".jpg" || $attach['attach_ext'] == ".png") { echo "

".$data['user_name'].$locale['506']."

www.".$attach['attach_name']."".$attach['attach_ext'].""; } else { echo "

".$data['user_name'].$locale['507']."
".$attach['attach_name']."[".$attach['attach_id']."]".$attach['attach_ext'].""; } }