View Full Version : Time resetting a table.
09-30-2011, 01:18 PM
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. :rolleyes: Thanks.
09-30-2011, 05:32 PM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.