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

  • Home
  • SEARCH
  • 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 8971739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:02:13+00:00 2026-06-15T18:02:13+00:00

This is my first post here, o let me say hi :) I have

  • 0

This is my first post here, o let me say hi 🙂

I have a problem with my google map. What I try to do is to get locations from mySQL database, and set a marker for every location on the map. Seems prety basic and easy. But I have a very limited web-developer knowledge, being a chemist 😉 What my page does – it just loads one record, not two (there are only two rows in the database anyway). You can find the code here

I have checked the query with another script – sit gets both records, while loop also seems fine. But somehow i get just 1 marker on the map 🙁 COuld you have a look please and check for the mistakes? I assume something is wrong with the marker generation in the loop…

Cheers, Michal

  • 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-15T18:02:15+00:00Added an answer on June 15, 2026 at 6:02 pm

    You only have one marker.

    var marker_ = new google.maps.Marker({
    position: myLatLng,
    map: map,
    title: tytul,
    zIndex: id
    });

    Here is a good way to handle it:
    Google Maps JS API v3 – Simple Multiple Marker Example

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

Sidebar

Related Questions

This is my first post here. I have a problem. I need to take
um, first post here, this place seems to be all over google and i
First let me say that I have been working on this issue for about
I'm new here, and this is my very first post. I have a very
This is my first post here so go easy. I am trying to build
this is my first post here on stackoverflow and am very impressed by the
My first post here, so i hope this is the right area. I am
I'm new to Java and this is my first post on here so hopefully
This is my first time here so I hope I post this question at
This is my first post and I my first experience with jquery. I have

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.