![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/10/2007, 05:03
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Re: Problema con comilla simple Prueba a poner:
Código:
echo "obj.options[obj.options.length] = new Option('".str_replace("'","\'",$resultado['Pueblo']."','".$resultado['PueblosID']."');\n";
También puedes probar a ponerlo así:
Código:
?>obj.options[obj.options.length] = new Option("<?=$resultado['Pueblo'];?>","<?=$resultado['PueblosID'];?>");
<?
A ver si así...
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |