Premetto che ho letto molto velocemente...
Non capisco foreach ( $row as $test => $ggg )...
Invece di usare push, prova a riempire $ex così
Codice PHP:
while($row=mysql_fetch_array($punti)){
$ex[]=array($row["data"], $row["goals"], $row["assist"], $row["penalita"]);
}
Affinchè la data sia passata nel formato giusto, fai il DATE_FORMAT nella stringa SQL
Per ciclare l'array $ex e vedere se è quello che vuoi:
Codice PHP:
foreach ($ex as $valore){
foreach ($valore as $val){
echo "$val ";
}
echo "<hr>";
}