PHP-Hispano.net Comunidad hispana de desarrollo web

Contacto | #php_para_torpes | Enlázanos | ¿Quiénes somos?

15 usuarios Online (0)

Darse de alta en la web | Recuperar password   
Inicio / Foros / MySQL / Agregar Latitud/Longitud a MySQL

Agregar Latitud/Longitud a MySQL

1 respuestas 447 visitas Categoría MySQL

Agregar Latitud/Longitud a MySQL

Avatar de faticod
* * * * * * *

(Nivel 1 - 10 posts)

#0 Offline faticod Usuario 04 feb 10
Hola
 
estoy tratando de agregar la latitud y longitud de un mapa de google , obviamente no se puede sacar de un script , asi que intento en php el problema es que no hace lectura de los datos
 

<strong></strong><strong><span style="font-family: System"> <span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><form action=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"#"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> onsubmit=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"showAddress(this.address.value); return false"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><p></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><span class=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"Text"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><input type=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"text"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> size=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"60"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> name=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"address"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> value=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"M&eacute;xico, D.F."</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> /></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><input type=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"submit"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> value=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"Buscar"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> /></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></span></p></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></form></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><table bgcolor=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"#FFFFCC"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> width=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"300"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><tr></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><td width=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"100"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> class=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"Text"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">><b></span></span><span style="font-family: System">Latitud</span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></b></td></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><td class=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"TextRojo"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> id=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"lat"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">></td></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></tr></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><tr></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><td width=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"100"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> class=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"Text"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">><b></span></span><span style="font-family: System">Longitud</span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></b></td></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"><td class=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"TextRojo"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> id=</span></span><span style="font-family: System; color: #008080"><span style="font-family: System; color: #008080">"lng"</span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">></td></span></span>
</span><span style="font-family: System"><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></tr></span></span>
</span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"></table></span></span><span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff"> <span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">

</span></span>
</span></span>
<span style="font-family: System; color: #0000ff"></span>
<span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">La cuestion es que no logro que consiga leerlo , me podrian hechar una mano?</span></span>
<span style="font-family: System; color: #0000ff"></span>
<span style="font-family: System; color: #0000ff"><span style="font-family: System; color: #0000ff">El mapa completo esta aqui:</span></span>
<span style="font-family: System; color: #0000ff"></span>
<span style="font-family: System"><span style="font-family: System">http://rapidshare.com/files/345976835/buscamapa.html</span></span>
<span style="font-family: System"></span>
<span style="font-family: System"><span style="font-family: System">Gracias</span></span>

Re: Agregar Latitud/Longitud a MySQL

Avatar de jurena
* * * * * * *

(Nivel 7 - 1622 posts)

#1 Offline jurena Moderador 06 feb 10
faticod,
explica mejor lo que quieres. Esto parece más de PHP que de MySQL, porque una vez tengas los datos hacer la inserción en la base es fácil. Tienes un html y de él quieres sacar la longitud y latitud para cargarla en una base. Lo importante es que se distinguan una de otra por algo, cadena previa, cadena posterior (sea html o lo que sea). Con expresiones regulares podrás, si se distinguen, y mediante preg_match_all() traerte los datos, todos los de esa página, cargados en variables en memoria, y luego los cargarás en la base. Pero lo primero es lo primero: Dinos cómo está el html de la página de la que quieres sacarlo. Tal vez no he entendido bien y se trate de otra cosa.

Responder mensaje

Para poder participar debes estar registrado e identificado. Si no estás registrado como usuario de PHP-Hispano, :: Registrar ::
Login / Password   

php-hispano.net 2002 - 2010 | XHTML 1.0
Datos Legales | Webmaster