id birth
-----------------------------
1 1079280000 (2004-03-15)
2 987264000 (2001-04-15)
3 1042560000 (2003-01-15)
How to convert to birth
timestamp to 1300118400
(2011-03-15) for sql;
<?php
$now = strtotime('2011-03-04');// today's timestamp
$sql = "SELECT * FROM member
WHERE birth(1079280000 convert to 1300118400) > $now";
?>
Results
id birth
---------------
1 1079280000 (2004-03-15)
2 987264000 (2001-04-15)
I need the birth
convert to current year birthday's timestamp
.