The value that gets retrieved from my db is just the month number, in this case, 9. I try to use date('F', $row['month']), and it returns December... I tried date('F', strtotime($row['month'])), but that didn't work either... Can someone help me out?
$months = array( 1 => 'January', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6 => 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 => 'October', 11 => 'November', 12 => 'December' ); echo $months[$row['month']];
or
$row['month']='9'; echo date('F', mktime(0, 0, 0, $row['month'], 1, 2000));
obviously 1 and 2000 for day and year are arbitrary