Jump to content

php time help


Recommended Posts

Record the click time of the button somewhere (sessions or database).  Every time they click, check to see if there's a previous click from them less than 24 hours ago.


The session will expire when they close their browser, and the database must be linked to their account somehow (unless this button is global and can only be clicked by anyone once a day.



Link to comment
Share on other sites

Depends on what you mean by "once a day".  If I click today (Monday) at 11:59PM, can I click again tomorrow (Tuesday) at 12:01AM even though it's been only 2 minutes?


Just 24 hours time. All I want is a 24 hours between clicks on the submit button for each person.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.