Hello, I have a news voting system that contains like and deslike.
However, I would like to calculate a percentage of this news, based on the number of votes, positive or negative. For example, when you have no vote it would be 100%, or with 10 positives also 100%. How can I do this in php?