I'm not sure, but it's best to make sure that the value is a numeric before checking it in the 'if' statements. Example:
$d2 = intval($d2);
if ($d2 == 01) { ...
Another way to do it without the need of 'if' statements is like this:
// Abbreviate the months if you want
$months = array( 1 =>
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December');
$date = $myrow[save_date];
list($d3, $d2, $d1) = explode('-', $date);
$d2 = $months[intval($d2)];
But I see that you're pulling it from a table. So, you can retrieve the date any way you want using the MySQL DATE_FORMAT() function. Then you don't have to do all that in PHP. See the MySQL manual page:
http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html#id2715212
hth.
EDIT:
Posted too late. Of course, drew010 way in PHP is simpler. But I still prefer the SQL way.