Código PHP:
$test = explode("-",$row[fecha]);
$y = $test[0];
$m = $test[1];
$d = $test[2];
// generamos los meses
function genMonth_Text($m) {
switch ($m) {
case 1: $month_text = "Enero"; break;
case 2: $month_text = "Febrero"; break;
case 3: $month_text = "Marzo"; break;
case 4: $month_text = "Abril"; break;
case 5: $month_text = "Mayo"; break;
case 6: $month_text = "Junio"; break;
case 7: $month_text = "Julio"; break;
case 8: $month_text = "Agosto"; break;
case 9: $month_text = "Septiembre"; break;
case 10: $month_text = "Octubre"; break;
case 11: $month_text = "Noviembre"; break;
case 12: $month_text = "Diciembre"; break;
}
return ($month_text);
}
$m = genMonth_Text($m);
$date = "$d de $m del $y";
//puedes implementarlo de la siguiente manera
echo" fecha $date";