Hi,

I am using ajax to load content within <div> tags, the problem is that I am trying to make a default record when the page is loaded. As a link is clicked the div tags are populated.. But by default upon arriving at the page the <div> is empty.

Here is the link for the ajax

PHP Code:
<class=\"second\" href=\"javascript: AjaxRequest('main','./includes/portfoliodisplay.php?id=".$portfolioid."')\">Portfolio</a> 
How can I take the latest record added and have it displayed as the default when the page is loaded ..

Thanks