I’m very new at using JS and AJAX. Currently I’m working with Google Maps API and I need to store some locations (lat,long) to the server.
What I want to do is store some sort of data in my existing MySQL database in server. I have got some good example as well like the following-
http://www.tutorialspoint.com/ajax/ajax_database.htm
Now my question is, will the server side php code be necessary if I only need to store data in the database (As it’s written that this file is to fetch data from the server)?
Any kind of help will be appreciated.
Yes you need server processing. You should see AJAX as a way to transport information to the server without loading the page. However the server still needs some code to receive this, make sense of it and store it in the database.