1
I need to consult and introduce the birthday kids of the week at Dashboard system, but today a birthday is not being displayed and would like to know where is the error.
Anniversary column: 1970-02-15 (the date is saved this way in the comic), date and nullable.
Mysql query: SELECT * FROM tbl_usuarios WHERE (WEEK(Aniversario) = WEEK(now()))
We had not noticed anything wrong, until the birthday boy himself questioned us, now we are in doubt if the same should be happening with other users.
perfect explanation, thanks for contributing.
– WMomesso