Welcome Guest, Not a member yet? Register   Sign In
google map app help
#2

[eluser]eoinmcg[/eluser]
Hi Boony,

Try changing
Code:
var url = "phpsqlinfo_addrow.php?name=" + name + "&address;=" + address +
                "&type;=" + type + "⪫=" + latlng.lat() + "&lng;=" + latlng.lng();
to:
Code:
var url = "phpsqlinfo_addrow.php/name/" + name + "/address/" + address +
                "/type/" + type + "/lat/" + latlng.lat() + "/lng/" + latlng.lng();

Of course you'll need to change 'phpsqlinfo_addrow.php' to the name of the controller/method in your CI app

You can then use $this->uri->uri_to_assoc(n) to return the segement as an associative array of key/value pairs.
http://ellislab.com/codeigniter/user-gui...s/uri.html

Hope that helps!


Messages In This Thread
google map app help - by El Forum - 09-29-2009, 04:05 AM
google map app help - by El Forum - 09-29-2009, 05:13 AM
google map app help - by El Forum - 09-29-2009, 11:54 PM
google map app help - by El Forum - 09-30-2009, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB