I have been looking and recently found 3 codes, all of which do not work as i need, I need a code that will grab the name of the newest topic/picture and who sent it and post it in the table. Heres what i have. Can anyone help with this?
	PHP Code:
	
		
			
<table width="135" border="0" cellpadding="0" cellspacing="0" bgcolor="#3D3532">
  <tr>
    <td>                <div align="left">
      <script type="text/javascript" src="/forums/external.php?type=js"></script>
      <script language="" type="text/javascript">
                    for (x = 0; x < 5; x++)
                    {
                    document.writeln("<img src=\"/images/icon_comment.gif\" /><a href=\"/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> ");
                    }
                </script>
    </div></td>
  </tr>
</table>