woohoo!!!
got it working!
Here is the final code for anyone with the same question.
<?php
$username = "username";
$password = "password";
$hostname = "localhost";
//connection to the database
$dbhandle = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
//select a database to work with
$selected = mysql_select_db("db_name",$dbhandle)
or die("Could not select examples");
//execute the SQL query and return records
$result = mysql_query("SELECT * FROM table WHERE date_field = DATE_ADD(curdate(), INTERVAL 3 DAY)");
//fetch tha data from the database
while ($row = mysql_fetch_array($result)) {
mail("xxxx@xxx.com", "Subject", "body");
}
//close the connection
mysql_close($dbhandle);
?>