![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/10/2004, 04:36
|
![Avatar de living](http://static.forosdelweb.com/customavatars/avatar65604_1.gif) | | | Fecha de Ingreso: mayo-2004
Mensajes: 1.266
Antigüedad: 20 años, 8 meses Puntos: 2 | |
No sé si se podrá arreglar de alguna otra forma pero si nadie te da otra solución podrías hacer esto:
$sql="INSERT INTO empleados (nombre,apellidos, direccion, municipio, cp)
values ('".str_replace("Ñ","¥",$reg['NOMBRE'])."','".$reg['APELLIDOS']."','".str_replace("Ñ","¥",($reg['DIRECCION'])."','".str_replace("Ñ","¥",($reg['MUNICIPIO'])."','".str_replace("Ñ","¥",($reg['CP'])."')"; |