Ver Mensaje Individual
  #10 (permalink)  
Antiguo 16/10/2008, 13:40
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 16 años, 7 meses
Puntos: 2
Respuesta: Primera letra con mayuscula

Oka, pero tambien se me vino el siguiente incoveniente,
tengo dos campos: APEPAT y APEMAT

y lo implemente asi:
<?php
function strtolower_es($string,$string2)
{
$low=array("Á" => "á", "É" => "é", "Í" => "í", "Ó" => "ó", "Ú" => "ú", "Ü" => "ü", "Ñ" => "ñ");
return strtolower(strtr($string,$string2,$low));
}
while($fila=mysql_fetch_array($registros)){
$paterno = $fila['alupat'];
$materno = $fila['alumat'];
?>
<tr >
<td><?php echo ucwords(strtolower_es($paterno)) ?></td>
<td><?php echo ucwords(strtolower_es($materno)) ?></td>

pero no me sale, como me podrian ayudar...gracias