hi, i was wondering how you could say for example someone presses a button, then a timer starts which for example 2 hours later changes the database information. like say field1 in table1 has a value of 10. someone submits a form in which 2 hours later would change field1 to 20 from 10.
any help appriciated greatly.
adding a timer until the database info changes
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
hi, sorry for the slow reply, after looking at some site on google about it, i have a few questions.
on the sites it says crons are written in the format:
minute hour day month year(some say day of week here) command
1. can we write php/mysql codes where it says command? if so do we write the whole code there including the <?php ?> tags?
2. if you dont do it like that, do you just write the code into a .php file and where it says command specify where the file is?
3. sorry if these are noob questions but i was wondering what file extension cron files get saved as? is it just .cron?
thanks for any help, greatly appriciated.
on the sites it says crons are written in the format:
minute hour day month year(some say day of week here) command
1. can we write php/mysql codes where it says command? if so do we write the whole code there including the <?php ?> tags?
2. if you dont do it like that, do you just write the code into a .php file and where it says command specify where the file is?
3. sorry if these are noob questions but i was wondering what file extension cron files get saved as? is it just .cron?
thanks for any help, greatly appriciated.