I am working on a web page(php based). I want to put a `like` button, so that when a user clicks it, he is added to the likers list in my database.(like in the facebook). I wrote a php funtion to execute this database insertion, but since the event should be fired with button click, i cannot execute the php function without redirecting or refreshing the page.
Can you give me assistance on how to make a database insertion without refreshing or redirecting the page.
Thank you very much