Birthday alert before 1 week. How to check current date with birthday date? My database is MySQL
<?php
$birthday_query = $link->query("SELECT u.u_username, u.u_birthday
FROM ".TBL_PREFIX."users u
WHERE u.u_banned = '0'
AND u_confirmed = '1'
AND u_birthday LIKE '" . $link->asf_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%'
ORDER BY u_username ASC");
?>
Its not working.