title: Google Maps API 3 - extracting markers from MySQL DB using PHP
body: <pre><code>&lt;?
   $query = mysql_query("SELECT * FROM poi_example");
   while ($row = mysql_fetch_array($query)){
   $name=$row['name'];
   $lat=$row['lat'];
   $lon=$row['lon'];
   $desc=$row['desc'];
  echo ("addMarker($lat, $lon,'&lt;b&gt;$name&lt;/b&gt;&lt;br/&gt;$desc');\n");
   }
  ?&gt;
  </code></pre>
  
  <p>this code (echo) shows the table data in HTML source code.. is there another way (which does not shows the data) to extract markers from table?
  thank you.</p>
  
  <p><a href="http://tips4php.net/2010/10/use-php-mysql-and-google-map-api-v3-for-displaying-data-on-map/" rel="nofollow">tutorial &amp; demo page</a></p>