mysql - SQL Only equal to day and month not year -
i have database users stores birthday. y-m-d, , im trying every user has same birthday. year can difference between each user.
so how turn this: select username table_name birthday='$birthday'
working script?
$birthday gets data form, inputs example: 2002-02-02. , if users have birthday echo out. problem checks year, , im trying month , day, not year.
i have tried (exact(month ...) didnt work. missing?
you can something
select username table_name month(birthday)=month('$birthday') , day(birthday)=day('$birthday')
Comments
Post a Comment