hola amigos, tengo el siguiente problema, necesito llamar a la funcion fecha en español para q me convierta la fecha a español q traigo desde la bd y al llamar esta funcion dentro de la tabla html donde muestro los datos al llamar la funcion desde el row 6 del array q es el q trae la fecha, me la pasa a español, pero se me imprime fuera de la tabla html desde donde muestro los datos y me deja el espacio de fecha de nacimiento de la tabla html en blanco, en q estare fallando al llamar a mi funcion, ya q me la convierte a formato español pero me la imprime fuera de la tabla html, mi code es este:
Código PHP:
<div class="div-titulo"<center><h3>Datos Personales</h3></center></div>
<br /><br />
<table width="1819" style="solid #FF0000; color:#000099; border-style:solid; border-color:#99CCCC; border-width: 0.5 px;">
<tr style="background:#99CCCC;">
<td width="73" height="17"><strong>
<center>Genero</center></strong></td>
<td width="128"><center><strong>Fecha Nac.</strong></td>
<td width="128"><center><strong>Edad</strong></center></td>
<td width="120"><center><strong>Grupo Etnico</strong></center></td>
<td width="140"><center><strong>Form. Valorica</strong></center></td>
<td width="194"><center><strong>Direccion</strong></td>
<td width="63"><center><strong>Sector</strong></center></td>
<td width="70"><center><strong>Fono Fijo</strong></center></td>
<td width="74"><center><strong>Fono Movil</strong></center></td>
<td width="116"><center><strong>Fono Referencia</strong></center></td>
<td width="200"><center><strong>Vive Con</strong></center></td>
<td width="160"><center><strong>Motivo No Vive Con Padres</strong></center></td>
<td width="162"><center><strong>Coment. No Vive Con Padres</strong></center></td>
<td width="56"><center><strong>Modificar</strong></center></td>
<td width="65"><center><strong>Eliminar</strong></center></td>
</tr>
<?
echo "</td>";
echo "<td><center>".$row_nino[5]."</center></td>";
echo "<td><center>".FechaESP($row_nino[6])."</center>//aqui en este row estoy llamando a la funcion fecha la cual se me imprime fuera de la tabla</td>";
echo "<td><center>".$row_nino[0]." Año(s)"."</center></td>";
echo "<td><center>".$row_nino[7]."</center></td>";
echo "<td><center>".$row_nino[8]."</center></td>";
echo "<td><center>".$row_nino[9]."</center></td>";
echo "<td><center>".$row_nino[10]."</center></td>";
echo "<td><center>".$row_nino[11]."</center></td>";
echo "<td><center>".$row_nino[12]."</center></td>";
echo "<td><center>".$row_nino[13]."</center></td>";
echo "<td><center>".$row_nino[14]."</center></td>";
echo "<td><center>".$row_nino[15]."</center></td>";
echo "<td><center>".$row_nino[16]."</center></td>";
en q estoy fallando amigos o comom debo llamarla para q se me cuadre y se me imprima en la parte de la tabla html q le corresponde a la fecha???..... porfavor ruego su ayuda, de antemano gracias..... bye