Well the issue I’m facing is I wish to update a mysql record whenever someone clicks on a thumbs up button but I’m rather new to javascript so it would be great if someone could point me in the right direction.
My website is built using php if that helps.
Thanks a lot
You have to send an AJAX request when you click. On the server side, there should be a URL that would listen for this request & will execute the query accordingly.
I hate to give an example from w3schools but still have a look at this.
EDIT: To the OP, you can take the idea from the example, but it is strongly discouraged to use GET request. See Crowdner’s comment.