http://www.texasrv.com/mapdemo2.php

I need some advice. I was able to grab some code, and tried to compile
them together. Apparently, it didnt work out they way I would like it
too. Basically, it can pull from the database, show on the sidebar,
click on the link, and popup a info window. BUT ... no description.
Also, the marker doesn't center. Can anyone help provide some
direction what I could be missing? Here is the PHP section that won't
show if you view source.

<?php
                $link = mysql_connect("localhost", "username", "password") or 
die
("Could not connect: " . mysql_error());
                mysql_selectdb("database",$link) or die ("Can\'t use 
dbmapserver :
" . mysql_error());

                $result = mysql_query("SELECT * FROM locations",$link);
                if (!$result)
                {
                echo "no results ";
                }
                while($row = mysql_fetch_array($result))
                {
                echo "var point = new GLatLng(" . $row['lat'] . "," . 
$row['lon'] .
");\n";
                echo "var marker = createMarker(point, '" . addslashes($row
['description']) . "');\n";
                echo "map.addOverlay(marker);\n";
                echo "\n";
                }

                mysql_close($link);
                ?>

Thanks for anyone help in advance,

Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to