Neither of these solutions seem to work - the first giving a straight parse error, and the second giving Parse error: parse error, expecting T_VARIABLE' or'$'' in /var/www/html/it/tracking/temp.php on line 48 - which I'm not too sure how to interpret.
However, browsing the archives I've found:
$this->ydata[]=$results[1];
Now this doesn't error, but I'm not sure what $this refers to, and using var_dump gives NULL. So I changed it to:
$i->ydata[]=$results[1]; - this also does not error, so any tips on what it means and how I reference the varibles I've created?! I've no idea what they'll be called now!!
Thanks.