Hello
Im trying to generate an array from ths query:
while ($query=mysql_fetch_array(mysql_query("SELECT time,score FROM statistics
")))
{
//generate array...how???
}
the array should look like this
$data = array(
array( "", 2000, 750),
array( "", 2010, 1700),
array( "", 2015, 2000),
array( "", 2020, 1800),
array( "", 2025, 1300),
array( "", 2030, 400)
);
the values 2000,2010 etc correspond to field [ time]
the values 750,170etc correspond to field [ score]
how do i create this array??
Thanks!