From b2e1866be015e0439252a1597384017f9558cdfc Mon Sep 17 00:00:00 2001 From: Pieter Bogaerts Date: Mon, 1 Apr 2013 17:36:31 +0200 Subject: [PATCH] Fixed a birthday problem --- connect.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.php b/connect.php index f18db59..e2e0758 100644 --- a/connect.php +++ b/connect.php @@ -236,7 +236,7 @@ function getEmployee($id) { } function getBirthdays() { - $getBirthdays = mysql_query("SELECT * FROM members WHERE birthday + INTERVAL EXTRACT(YEAR FROM NOW()) - EXTRACT(YEAR FROM birthday) YEAR BETWEEN CURRENT_DATE() - INTERVAL 30 DAY AND CURRENT_DATE() + INTERVAL 30 DAY "); + $getBirthdays = mysql_query("SELECT * FROM members WHERE birthday + INTERVAL EXTRACT(YEAR FROM NOW()) - EXTRACT(YEAR FROM birthday) YEAR BETWEEN CURRENT_DATE() - INTERVAL 30 DAY"); echo '

Birthdays