I want to implement like and dislike buttons in a webpage. I know how to do it if the voting sent the user to another page, but I want:
1. The webpage to stay the same, no redirecting
2. The MySQL database to update
3. To disable the like and dislike buttons once the user has voted.
I have no idea how to do this. Does anyone have the answer or a tutorial I could read?