I am working on a code that dispatches airtime depending on a schedule that is specified. Now all works just fine. The only problem is that the code executes only once.
To throw more light, here is how it is meant to work;
1. An administrator creates a schedule, specifying how frequently they want the airtime to be dispatched [working ok]
2. The cron runs on a daily basis to find which airtime to send
Currently, I have a field called airtime status, whose default value is 0. But after sending the airtime, then the statusis updated to 1.
Now the real challenge is that; if this status is set to 1, it means that the script will not send that airtime again; yet it is supposed to be sent daily.
Any suggestions as to how I can go about this?
Edited by Webville312