I want to store Facebook shares of my website in the MySQL database. I used following code to get the share value when page load. But I don't know how to save it into database?
Code:
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$x='http://api.facebook.com/method/links.getStats?urls=http://www.yahoo.com&format=json';
$.ajax({
url: 'http://api.facebook.com/method/links.getStats?urls=http://www.yahoo.com&format=json',
success: function(data){
$("#dd").html(data[0]['comment_count']);
} });
</script> In the body section I use div to show this value
HTML Code:
Comment count = <div id="dd"></div>