Is it Possible to make a script that automatically runs even without loading the page that can update the values of the database based on the time condition? how?
You can use a cron job. It will automatically run depending on your settings, it can run as often as every minute or as rarely as once a year. It is totally up to you. Usually it is easy to set up so you should not have any problems with that. We need more details about your set up though. |
|||||||
|
cron
and you can have your php script call the same function that gets called by your web page (or whatever updates to the DB you need – Juan Mendes Dec 5 '12 at 3:14