GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Frage über postalCodeLookupJSON?postalcode  XML
Forum Index -> Forum in Deutsch
Author Message
gmuend



Joined: 24/05/2010 12:34:45
Messages: 15
Offline

Es gibt
Code:
request = 'http://www.geonames.org/postalCodeLookupJSON?postalcode=' + postalcode  + '&country=' + country  + '&callback=getLocation';

Wie kann man ganze ändern?, zum Beispiel:
Code:
request = 'http://meine_site.de/postalCodeLookupJSON?postalcode=' + postalcode  + '&country=' + country  + '&callback=getLocation';

Durch php und sql funktioniert, aber wie kann man von sql zu postalCodeLookupJSON übergeben?
Code:
<?
 $host="localhost";
 $bdname="***";
 $bdlogin="***";
 $bdpassword="***";
 
 $db=@mysql_connect($host,$bdlogin,$bdpassword);
 if(!$db)die(mysql_error());
 // auae?aai iaoo AA
 if(!@mysql_select_db($bdname,$db))die(mysql_error());
 // oeacuaaai eiae?iai?eo
 mysql_query("SET NAMES utf8");
 
 echo "PLZ	-	Budesland	-	Stadt	<br/>";
 
 $query = "SELECT * FROM ZipCodes";
 $result=mysql_query($query);
 while($r=mysql_fetch_array($result)) {
 
 echo "$r[PostalCode]	-	$r[AdminName1]	-	$r[PlaceName]	<br/>";
 
 }
 mysql_close($link);
 ?>
[WWW]
gmuend



Joined: 24/05/2010 12:34:45
Messages: 15
Offline

Erledigt.
Ich hab ganz anders gemacht, durch jquery.js.
[WWW]
 
Forum Index -> Forum in Deutsch
Go to:   
Powered by JForum 2.1.5 © JForum Team