T
T
timtimIT2015-11-05 12:50:53
JavaScript
timtimIT, 2015-11-05 12:50:53

How to remove the "rate" button if the rating has already been left from this ip?

Hello.

How to remove the "rate" button if the rating has already been left from this ip?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2015-11-05
@streetflush

Write to the database not only +1 to the rating, but create a separate rating table and write the IP of everyone who "rated G" there.
When evaluating, check for entries with the given IP in the table.

M
Maxim Nepritimov, 2015-11-06
@nepritimov_m

In addition to the streetflush described above, when loading the page (forming it in php), check whether the user with this ip voted for this news. If yes - do not download the button. If not, download.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question