As I understand you got stuck in the part where you want to grab the data from the database and present a map with the location based on the latitude and longitude.. If this is right, you can try this..
Base on the example found on this link https://developers.google.com/maps/articles/phpsqlsearch_v3?hl=es#createtable
This is the code that worked for me (I do not know if anything is redundant).
<?php
//select statement that grabs latitude and longitude for the current user and stores them to variables eg $lat and $lng. Then you just echo them below into the javascript.
?>
<html>
<head>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script language="javascript" type="text/javascript">
var map;
var geocoder;
function InitializeMap() {
var latlng = new google.maps.LatLng(<?php echo $lat; ?>, <?php $lng; ?>);
var myOptions =
{
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: true
};
map = new google.maps.Map(document.getElementById("map"), myOptions);
}
window.onload = InitializeMap;
</script>
</head>
<body>
<table>
<tr>
<td colspan ="2">
<div id ="map" style="height: 253px;width: 447px;" >
</div>
</td>
</tr>
</table>
</body>
</html>