Jump to content

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

you going to have to set up a cron job to search the database for courses closing that particular day or time

and have it run every day at a certain time, or ever hour, depending on how frequently professors close their courses

Link to comment
https://forums.phpfreaks.com/topic/123718-solved-timer-in-php/#findComment-638838
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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.