title: google maps multiple markers in php not working
body: <p>to put map in my site i follow one example and it will display static markers like.</p>
  
  <pre><code>var locations = [
  ['Bondi Beach', -33.890542, 151.274856],
  ['Coogee Beach', -33.923036, 151.259052],
  ['Cronulla Beach', -34.028249, 151.157507],
  ['Manly Beach', -33.80010128657071, 151.28747820854187],
  ['Maroubra Beach', -33.950198, 151.259302]
  ];
  </code></pre>
  
  <p>i want it dynamic from mysql table. it has lat and lng. i tried this but not working</p>
  
  <pre><code>&lt;?php
      $host = "localhost";
      $db_name = "aarya";
      $user = "root";
      $password = "";
  
      $con = mysql_connect($host,$user,$password) or die("connection error");
  
      mysql_select_db($db_name) or die("could't connect to database");
  
      $query="SELECT * FROM detail";
      $result=mysql_query($query);
      while ($row=mysql_fetch_array($result)) {
      ?&gt;
  var locations = [
    ['&lt;?php echo $row['name'];?&gt;','&lt;?php echo $row['lat'];?&gt;','&lt;?php echo $row['lng'];?&gt;'],
  &lt;?php
  }
  ?&gt;
  ];
  </code></pre>
  
  <p>i think problem in locations array and i am new in google maps please help me.</p>