I print mysql result into div using php/while loops. now i need to refresh this result after click any link, button using jquery plugin or code . better design after click link, user see any loading message ( please wait ) and jquery/php print new result ( refresh div ). Is this possible? There is a way to do this?
My div is :
<a class="click" href="#"> Link TO refresh Div </a>
<div class="messagelist">
<?PHP $result=mysql_query("select * from messages where id<'$lastmsg' order by id desc limit 20");
$count=mysql_num_rows($result);
<div class="commentbox">
while($row=mysql_fetch_assoc($result))
{?>
<li>
<?php echo $row['id'] . ' #' . $row['date'] . ' / ' . $row['comment']; ?>
</li>
<?PHP } ?>
</div>
</div>
NOTE : I dont need To Load From Jquery External File Methods . thanks