Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7961851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:10:00+00:00 2026-06-04T05:10:00+00:00

Im working on a script that will pull a variable from my MySQL db

  • 0

Im working on a script that will pull a variable from my MySQL db table, heres the example coding google gives me.

var beaches = [
  ['Bondi Beach', -33.890542, 151.274856, 4],
];

and now here is what im trying to achieve,

i have a table with the fields, ID , Beach , Long, Lat

how would i replace the beach variable to pull from my MySQL table instead of having to go in and manually add the beach to the variable. That way when users add a Beach Name with longitude and latitude to the DB through my form it automatically adds a marker on my google maps.

I am achieving the ComplexIcon Overlays with Google Maps API v3

https://developers.google.com/maps/documentation/javascript/overlays#ComplexIcons

Im guessing im going to be using some AJAX ? I have never used AJAX before so if this is the case i guess i better pull up my AJAX tuts 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:10:01+00:00Added an answer on June 4, 2026 at 5:10 am

    Javascript in a user’s browser can’t get at your database directly (which is good!) but it can ask your server for data, and AJAX may well be the way to go if you want dynamic updates. Google has an article: https://developers.google.com/maps/articles/phpsqlajax_v3

    However it seems more likely that you will simply need to get the marker data when you send the page to the browser, and you can do that by constructing the page in PHP or another server-side language, using similar techniques to get data out of the database and use the values directly in the page code.

    You may need to do both, to create the initial page the user gets and update it via AJAX so just the data changes and you don’t have to refresh the whole page.

    [Note: you don’t have to use XML to transfer data asynchronously, you could use JSON to format it or any other format you can code for. But XML is easy and there are plenty of examples.]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Python script that will extract data from Database and
https://spreadsheets.google.com/ccc?key=0AnVTJLrKrQo_dE5zdTlKbmxkRk1PU19HUnBlTFBBMWc&hl=en&authkey=CLOYpKoH I'm working on a script that will help me keep track of receipts
I am working on building a small php/mysql script that will act something like
I am working with the script that will be checking the age from the
I am working on a script that will insert a table in a rich
I am working on a Ruby script that will download emails from Gmail and
I'm currently working on a jQuery script that will translate the site's text into
I was working on a script that grabs the value from the selected option
I am working on a small bit of script that will allow for easy
I'm working to create a simple Python script that will ultimately tell you how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.