i dont find to my error plese help me
this code i using to loading to php array
while($newarray = mysql_fetch_array($query))
{
$latt[$count] = $newarray['lat'];
$lonn[$count] = $newarray['lon'];
$userr[$count] = $newarray['user'];
$count++;
}
this part my javascript code
var cout= <?php echo $count ?>;
var lat = new Array();
var lon = new Array();
var user = new Array();
<?php $count =0; ?>
var i;
for ( var ii=0 ; ii<cout ; ii++)
{
<?php $count++ ?>
user[ii] = ("<?php echo $userr[$count]?>");
lat[ii] = ("<?php echo $latt[$count]?>");
lon[ii] = ("<?php echo $lonn[$count]?>");
var point = new GLatLng(lat[ii],lon[ii]);
map.setCenter(point, 10);
var marker = new GMarker(point);
map.addOverlay(marker);
GEvent.addListener(marker, "click", function()
{marker.openInfoWindowHtml(user);});
}
error is given by just fist point. I want to do to get the coordinates of all databases. javascrpit array not working.