hi everyone.
i've looked on many sites about Google Maps API, but i couldn't
resolve my issue.
please help with this one. i'm begginer in web developing and i'm
trying to do some application using Google Maps, i managed to do some
things, but what i stucked on is this problem...
simplified ex:
$query="SELECT * FROM base WHERE name LIKE '%{$_POST['name']}%'";
$result=mysql_query($query) or die(mysql_error());
//counts how many objects founded
$obAmount=mysql_num_rows($result);
echo'Founded: '.$obAmount.'<br /><br />';
// loop displaying results
for($x=0;$x<$obAmount;$x++)
{
// making array with results
$row=mysql_fetch_assoc($result);
// printing id number
echo $x+1;
echo '. ';
// printing matching data from database
echo $row['name'];
//latitude and longitude of each point are stored in databesa as
well and here i'm printing them
echo $row['lat'];
echo $row['lng'];
echo $row['flag']; //flag is just some link to specific icon
representing marker
then i have code which is needed to display Google Map.
my question is what should i do to display data received from database
as a marker or markers on my Google Map.
or some extension of this issue (i suppose i could handle this one,
but i don't how to begin:])
1.i have another php (eg. gmap.php) file with code displaying Google
Map
2.when code given above prints listed data matching my query
3.below this list appears submit button which sends array with data to
my file gmap.php
4.gmap.php gets submited data and puts markers on a GMap.
I would be really thankful for solving this one out:)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---