I want to load the data from db and want to display the counts example: message(5).So i have written the query inside the the div.
<?php
function load()
{
echo "<div id='count'>";
db_select("query is here");
echo "Message($count);
echo "</div>";
}
?>
I want to refresh the count div without page load in Drupal 7. can anyone help me for this
Thanks in Advance.