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? Link to comment https://forums.phpfreaks.com/topic/19569-reset-a-whole-row/ 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 Link to comment https://forums.phpfreaks.com/topic/19569-reset-a-whole-row/#findComment-85124 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 Link to comment https://forums.phpfreaks.com/topic/19569-reset-a-whole-row/#findComment-85125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.