No need to go through all that formating....simply have mysql return the date in the formation you want:
select date_format('2003-03-15 00:00:00', '%b %d, %Y %W');
...so in your query it would look something like:
select col1, col2, date_format(col3, '%b %d, $Y %W'), col4 from .... you get the idea.
Don't limit your research to the language your using...make sure to look for what's available to you in the apps your php code touches ..i.e. mysql. It can save you alot of code, time and headaches.
Here is the mysql link for date time functions:
http://www.mysql.com/doc/en/Date_and_time_functions.html
BTW: March 15th, 2003 was a Saturday....not a Wednesday