Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2011
    Location
    Space
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Time resetting a table.

    I was just wondering how it would be possible to collect a table of data such as if someone pressed a button and the table data updates to '1' from '0' for each user who pressed it. Then every 24 hours it would all return to '0' for them to do it again.
    Any help is appreciated. Thanks.

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,092
    Thanks
    23
    Thanked 594 Times in 593 Posts
    You probably have a DB table that contains user information. Add a column to that for the button press. You can then query the table for your info, you can also return the status of this column at that time or later using a cron job set to repeat every 24 hours.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •