title: Generate Markers from Mysql Database
body: <p>I have an array of markers coded into a web page and I use them to generate markers for a google map in the form of</p>
  
  <pre><code>generateMarkers([['Location', lat, long], ['Location2', lat2, long2],['Location3', lat3, long]3]);
  </code></pre>
  
  <p>So now am attempting to retrieve marker positions from a database so I attempted to use the code below to do so</p>
  
  <pre><code>getmkrs(
    &lt;?php
          $db_con = mysql_connect("localhost",'root','');
          mysql_select_db("db_name",$db_con);
          $query_db = "Select * From table_name";
          $result = mysql_query($query_db, $db_con);
          $joiner = '';
      ?&gt;
  
  var_markers = [&lt;?php while($row = mysql_fetch_assoc($result)):?&gt;
  &lt;?= $joiner ?&gt;
  [&lt;?= $addslashes($row['Row1']) ?&gt;, &lt;?= $row['Row2'] ?&gt;, &lt;?= $row['Row3'] ?&gt;                     ]       
  &lt;?$joiner = ','?&gt;
  &lt;?php endwhile; ?&gt;];
  </code></pre>
  
  <p>); </p>
  
  <p>But Ultimately the page turns up blank, not even the map shows up. I am trying to replicate the above array which I coded into the web page. So my question is how can I efficient generate markers using data from a databse</p>