Is it possible to update database once a user shared a link in my website?
Such as,some points will be awarded to their account if they shared the link.
And
Yes, it is possible.
Example Link:
Example code to proses
if(isset($_GET['share']))
{
if(mysql_query("insert into table X() value()"))
{
//open window, you can use header('location:..') or meta redirect or another way, in this sample i'm using javascript window.open;
echo '';
}
}
To implementing facebook "Like" button, this link maybe can help you