Advertisement
mrdrifter

Untitled

Apr 12th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. $res=mysql_query("SELECT * FROM `Interiors`");
  3. while($row=mysql_fetch_assoc($res))
  4. {
  5. $interior=array();
  6. $interior["icon"]=$row['mapicon'];
  7. $interior["name"]="ikona";
  8. $interior["pos"]["x"]=$row['x0'];
  9. $interior["pos"]["y"]=$row['y0'];
  10. $interiors++;
  11.  
  12. echo "<script>var homeMarker = new google.maps.Marker({
  13. position: SanMap.getLatLngFromPos({$row['x0']}, {$row['y0']}),
  14. map: sm.map,
  15. icon: 'icons/Icon_31.gif'
  16. });</script>";
  17. }
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement