A
Anonymous
Guest
Im tring to get a date from my database.. and send the user an email on the an event that the user has ..the part of quering the date out is easy.. but.. the part on creating a mail script to send an email on that date.. is where im confused at.. can someone post me an example on how to do this.. i figure it would go something like....
Code:
$A = mysql_query("SELECT * FROM events ORDER BY uid DESC ");
WHILE ($rows = mysql_fetch_assoc($A)){
$uid = $rows['uid'];
$datestart = $rows['datestart'];
$title = $rows['title'];
}
$today = date("Y-n-j");
if($today == $datestart){
echo $datestart;
}else{
echo $datestart;
echo "something is wrong";
}