This code works for all years, ignoring the year, as its every year your birthday, not just matching one year!
1 2 3 4 5 6 7 8 |
// $dob = '1999-04-02'; $time = strtotime($dob); if(date('m-d') == date('m-d', $time)) { echo "<img src='images/birthday.png' class='balloon'>"; } |