I've developed a site using php/mysql but the client has shifted goal posts and wants me to port it to PHP/MSSQL 2005. After a few days of trial and error plus trolling through the net everything is working fine except a script i had developed similar to the facebook birthday app which lists your friends upcoming birthdays.
I had used MySQL's date functions and it works perfectely. The sql i used was:
$query = "SELECT * FROM bdays WHERE DAYOFYEAR( Bday_Date ) BETWEEN DAYOFYEAR( CURDATE( ) ) AND DAYOFYEAR( CURDATE( ) ) +7 ORDER BY DAY( Bday_Date ) ASC ";
My problem is that I havent found any function in MSSQL that can do something similar. Does anyone have any ideas on how i can replicate this in MSSQL?