>Hi everyone. >I have a sql database of users with their birth date (Y/M/D). > >Can anyone please tell me how I can check whose birthday each day is, and >pull them from the database?
WHERE MONTH(birth) = MONTH(CURDATE()) AND DAYOFMONTH(birth) = DAYOFMONTH(CURDATE()) I'm assuming you have birth date stored in a single field "birth". > >Thanks, >Soheil --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php