I am making a simple comment system with rate for each comment.
(Did you like this comment?) question with two buttons "Yes" and "No".
I am trying to find a simple way that on clicking the button it updates in the database the number of votes if said yes or no.
I looked in several places over the internet but there was nothing so specific except that I know it is not a big problem and can be done easily.
what is the column type supposed to be and how to write the query on the html button?