.-=Clan Miami Killers=-.
Other => Scripting => Scripting Support => Topic started by: Crack on April 19, 2016, 06:31:27 am
-
Hello mates, i'm working on a project of the school. My team is trying to create a map which locate and store positions (Using latitude and longitude) using Google's API and PHP, MySQL.
Here's the documentation:
https://developers.google.com/maps/articles/phpsqlsearch_v3#creating-the-table
Everything works fine but i got some issues with some undefined variables:
(https://i.imgur.com/vvclw2v.png)
//I'm newbie with APIs :-\
Thanks
-
Use either PDO or Doctrine DBAL for database connections.
You might be trying to access a variable in a function that is outside that function, but in PHP you can't just do that. The scope is a bit fucked up. Cant say more without seeing the code itself.
Also, access the API with JavaScript using AJAX. (preferred)
-
I solved the problem and now it's working :P
Thanks