hello I have a php code that get contents from DB I want to load this contents in a div with "link" class without refreshing page
here is my code
<?
include('config.php');
$rs = mysql_query("SELECT *
FROM `database` order by desc limit 1");
while($rw = mysql_fetch_assoc($rs))
$id = $rw['id'];
$title = $rw['title'];
?>
<div class="link">
<?
echo $title;
?>
</div>