$userinfo[where] = "Viewing <a href='attachment.php?s=$session[sessionhash]&postid=$userinfo[postid]'>Attachment</a> in Thread <a href='showthread.php?s=$session[sessionhash]&postid=$userinfo[postid]'>".$thread[title][$post[$userinfo[postid]]]."</a>";