I have used the sample phpsqlajax_map.html in the samples. I an trying
to pass a variable (tablename) to phpsqlajax_genxml.php.
In phpsqlajax_genxml.php I have added $table = $_COOKIE["table"]; and
changed the sql to:
$query = 'SELECT * FROM '.$table; if I run phpsqlajax_genxml.php in a
browser I get the xml output as expected.
I have change phpsqlajax_map.html to phpsqlajax_map.php and added
<?php $table=$_GET['table']; $expire=time()+60*60*24*30; setcookie
("table", $table,$expire);?>
I call phpsqlajax_map.php?table=tablename from my main app.
So I get tablename set it as a cookie, then I would expect
phpsqlajax_genxml.php to generate populate the map but I do not get
any markers showing. Any ideas on why this is not working or another
approach I can use.
Cheers
SteveW
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---