Jump to content

[SOLVED] Timer in PHP


Abang

Recommended Posts

Hi all, I really need help..

 

First sorry for my bad English..

 

Im making a course subsmission program for my staff. Admin will set the opening and closing date for each courses. Each course will be closed on their respective closing date. In "course" table i had 3 fields (start_date, close_date, status). The "status" value is either "open" or "close". For now, the value will be changed to "close" by Admin (thru web of course) when the courses had reached their respective closing date. My problem is, how do I automate this? How to do so "status" value will automatically change to "close", when that courses reached their closing date without Admin need to check it everyday? What function or trigger must I use? Countdown? Timer? I really got no idea on this, please help.

Link to comment
https://forums.phpfreaks.com/topic/123718-solved-timer-in-php/
Share on other sites

 

Wow thats fast..  ;D

 

Thanks discomatt and zanus.. I think zanus answered me right... Maybe cron job will solved my problem.. But wait, I just realized that when I login to this forum, it ask me for how long I want to stay online... Maybe I can use the same technique here.. Cant I? And how? Please someone point me to the right direction..

Link to comment
https://forums.phpfreaks.com/topic/123718-solved-timer-in-php/#findComment-638854
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.