Page is a not externally linkable
rocknbil - 6:40 pm on Aug 13, 2010 (gmt 0)
Not familar with the flash product, sorry . . . but a couple small(ish) things I don't grok.
$lat = $row['lat'];
$long = $row['long'];
OK . . so you have scalar values for $lat and $long. Not arrays (lists,) but single values. Then you do
$n = count($lat);
which (should?) always give you a 1 . . or maybe even a warning/error since it's not an array, nothing to count. Then where you really lose me is
$ymax = $lat[1];
$ymin = $lat[1];
$xmax = $long[1];
$xmin = $long[1];
Which indicates, to me, you have either previously defined the array $lat and $long - which you just killed and re-set as a scalar above - and are setting your x/y's to the second member in these arrays. Which don't exist. For example
$lat = new Array();
$lat[1] = 'some_value';
Since there's no zero'th (first) member, the array $lat is now
[null,'some value']
So my point is, from the code you have there, all four of your x/y values . . . should be null.
Deal's off for me at that point, I don't get it. :-) But further on, echo $n gives you a 1, right? OR is it null? (Never tried to count a scalar.)
for ($i=0; $i<$n; $i++)
So this should go through once. 0 < 1 is true. But there's no member at $long[0] or $lat[0].
The final point of "where am I, what am I doing" is this.
$track[$i] = new point ($long[$i], $lat[$i] , 3);
This indicates you have to have some class with a function or constructor for "point." I looked, no PHP function "point."
Maybe more info is required, dass' all I got.