function showLocation(position) { var coords = position.coords; var latitude = position.coords.latitude; var longitude = position.coords.longitude; alert("Latitude : " + latitude + " Longitude: " + longitude); showBaiduMapLocation(position); } </script> </head> <body> <div align="center">YOUR RECENT (5) PORTRAITS</div> <?php require_once "library.php"; $records = RecordsStore::retrieve(); foreach ($records as $key => $record) { ?> <HR> <table border = 0 align="center"> <tr align="center"> <td> <img alt="image generated from JS (returned from PHP)" width="150" height="180" src="<?php echo $record->getPhotoBASE64(); ?> " /> </td> </tr> <tr> <td> <font color="purple">