Hi, I'm currently working on a Google Map system for my dissertation
that reads addresses from a MYSQL database then uploads the details
and displays them onto the map, but i'm having trouble created an
alphabetical search tool that refines the searches down to one
location so that the user can view just one specific location on the
map instead of multiple ones and example of exactly how I would like
mine to work is at -  http://fastfood.louisvillediner.com/


This is the PHP/XML script I am using that retrieves the address
details from the database

<?php header("Content-type: text/xml");?>
<markers>
<?php
//connect to db

$link = mysql_connect("******", "******", "******") or die("Could not
connect: " . mysql_error());
mysql_selectdb("p1",$link) or die ("Can\'t use dbmapserver : " .
mysql_error());

//run query
$result = mysql_query("select * from markers1");

//loop data
while($data = mysql_fetch_array($result)){
        echo ("\t <marker lat=\"$data[latitude]\" lng=\"$data[longitude]\"
html=\"$data[address]\" label=\"$data[address]\" category=
\"$data[category]\" icontype=\"$data[icon]\"/>");
}
?>

</markers>


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to