in serious trouble here, fresher in php as well as sql..
sos needed pleez guys! :help:
So this is the issue: i wrote a php script that sends an sms to all members in our databse on the server, when i executed the script it sent about 2800 smsz instead of 18000 and i assume it was due to loss of intenet connection at some point (this is aphrika!!)- there is also the issue of buffer limits in php??
Anyways to prevent that from happening again i need to somehow detect when the internet connection goes off so as to "mark" where the script had reached at that time, then continue where it had reached (at the 'mark') when the connection comes back - this detecting of reconnection & continuing of the script can be done manually if php does not provide means for this - BUT the main thing would be:
detecting when internet connexn goes off and -
recording in which record of DB the execution had stopped
Some points that may help:
-there is an auto-increment field in the members table (called memIndex)
- i'll also appreciate an explanation to this:
when i executed the script i noticed that it started executing with random memIndex's (starting with 11987 then 998...) then it goes to some low memIndex and continues executing in increasing memIndex order... 8O - how can this be prevented?
I hope that wasnt too long and big a problem!! will really appreciate ur help..
thanx