Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Fixed a birthday problem
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzaPete committed Apr 1, 2013
1 parent 147ce9e commit b2e1866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<div class="wrapper"><p class="lead">Birthdays</p><ul class="nav nav-tabs nav-stacked">';

Expand Down

0 comments on commit b2e1866

Please sign in to comment.