[Solved] Button with a limit of one click per hour


You can store the number of clicks in a mySQL column and increment it every time a user clicks the button and then check if the click falls in the past 1 hour interval and if so, tell them they have to wait.

Something like this:

select count(*) as clicks_in_the_past_hour
from table 
where click_time >= now() - interval 1 hour

1

solved Button with a limit of one click per hour