Skip to content
Advertisement

How to limit how often a user can update a mysql value to a database

I have a field on my website, which updates a value in my mysql database. I want to make it so the user can only update the value every 3 days. How would I go about doing this?

Here is the code that I have written so far:

JavaScript

Advertisement

Answer

Create new row into db (last_update) type= data

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement