error); } } else { $mssg = "You've already visited this page."; } $mssg = ""; // either way, display the map: $mapq = mysqli_query($link, "SELECT * FROM visits WHERE page='$page'"); $json_arr = array(); echo print_r($rows, true); while($r = mysqli_fetch_assoc($mapq)) { $json_arr[] = '{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [' . $r['longitude'] . '000001, ' . $r['latitude'] . '000001] }, "properties": { "message": "' . $r['city'] . '", "iconSize": [39,39] } }'; } $json = implode("," , $json_arr); ?> Ian Boyden Woeser Translations