while ($attachment = $db->fetch_array($attachments)) { // ... display each thumbnail $thumbs .= " <a href=\"attachment.php?".$session['sessionurl']."attachmentid=".$attachment['attachmentid']."&d=".$attachment['dateline']."\" target=\"_blank\"> <img class=\"thumbnail\" src=\"attachment.php?".$session['sessionurl']."attachmentid=".$attachment['attachmentid']."&stc=1&thumb=1&d=".$attachment['thumbnail_dateline']."\" border=\"0\" alt=\" <phrase 1=\"".$attachment['filename']."\" 2=\"".$attachment['counter']."\" 3=\"".$attachment['filesize']."\" 4=\"".$attachment['attachmentid']."\" > ".$vbphrase['image_larger_version_x_y_z']." </phrase> \" /> </a> ".iif($show['br'], "<br /><br />")." "; } print_description_row($thumbs, 0, 6, '', 'center');