you would need to write a cron job, to check every day at a certain point.
first contact your ISP (host) to see if they allow user cron jobs, and if they do take a look at
http://roshanbh.com.np/2008/01/how-t...-cron-job.html
then you would need to create that file to in the first instance read a flat file, in the second instance, check the database.... and send some type of pre-formatted email
Edit: BEGIN EDIT
if your ISP supports user-managed cron jobs, and you want to do this in PHP, a general database extraction script is below
PHP Code:
$link = mysqli_connect('HOST','USERNAME','PASSWORD','DATABASE');
if($link && mysqli_select_db('DATABASE', $link))
{
$grabBday = "SELECT _bday_fields_ FROM _bday_table_ WHERE _bday_check_ = '_bday_check_value'";
if($rs = mysqli_query($link, $grabBday))
{
while(mysqli_fetch_array($rs))
{
mail('TO_EMAIL', 'HAPPY BIRTHDAY', 'MESSAGE');
}
}
}
Edit: END EDIT
Bookmarks