
June 12th, 2004, 05:28 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Hey,
I'm afraid I am a bit of a newbie, so this solution is more than likely flawed - there's probably also a better way to do it. This is just an idea of how I would go about it first time round!
You will need to write your script first, that queries the database for all records who's date and time has passed the current date and time. Then use a foreach loop to cycle through an array (obtained from the mysql_fetch_array() function) in order to: - Use the mail() function to email the user(s).
- Drop the records from the database that contain send reminders, so that a reminder is not sent out again.
If you are running a Linux\Unix server, use cron to set the script to run every minute (click here for a got intro to cron). If you are running a Windows server, just set the script to run at the required interval by setting up a simple scheduled task. A good tutorial on how to do this on versions of since Win98 is located at http://www.iopus.com/guides/winscheduler.htm.
Like I say, give it a shot - its just an idea.
Hope I've helped!!
Regards,
Ben Hodgson
|