I did this and I was able to output an array of arrays, but now I am stuck trying to loop through this mess. I am sorry that I am leaning on this so heavily, but I have a hard time wrapping my mind around arrays. I have done some reading to break down the array, but I think mine is slightly more complicated. To get what I have I used this code:
while($row = mysql_fetch_array($sql))
{
$plot[] = array('x' => $row[1], 'y' => $row[2]);
}
and the output is this:
Array ( [0] => Array ( [x] => 160 [y] => 61 ) [1] => Array ( [x] => 91 [y] => 145 ) [2] => Array ( [x] => 83 [y] => 151 ) )
I was wondering how I can loop through this data to get $plot[0] = (160, 61)
I was trying foreach statements but not seemed to work.
Thanks,
Yanks