Chevy Posted September 3, 2006 Share Posted September 3, 2006 I want to reset a whole row for all the users 1 time a day (12:00:01 AM)It needs to get set back to 0 for everyone, is there a way to do this? Quote Link to comment Share on other sites More sharing options...
AndyB Posted September 3, 2006 Share Posted September 3, 2006 Yes. Two things:#1 - a script that executes the correct UPDATE query.#2 - either cron on *nix server or Windoze scheduler on a Win server Quote Link to comment Share on other sites More sharing options...
paul2463 Posted September 3, 2006 Share Posted September 3, 2006 use some code like this[code]<?php$query = "UPDATE table_you_need_to_update SET row_you_need_to_update = '0'";mysql_query($query);?>[/code]and set uip a cron job on your server to run it when you want it running Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.