<?php ////// Check BirthDays: Error Code = 1 $today = split("-", date("Y-m-d")); $result = mysql_query("SELECT Member, FirstName, Birthday FROM members;") or die ("Error Code #1."); while ($row = mysql_fetch_array($result)) { $birthday = split("-", $row[Birthday]); if (((int)$today[1] - (int)$birthday[1] == 0) && ((int)$today[2] - (int)$birthday[2] == 0)) { $age = (int)$today[0] - (int)$birthday[0]; print "<tr bgcolor=\"#333333\" bordercolor=\"#333333\"><td colspan=\"5\" width=\"10%\">"; print "<p>Hay what up <b>".$row[FirstName]."</b>, it's ya' birthday!!!<br>"; print "who turns ".$age." today!<br></p></td></tr>"; } } ?> That might help