if you using
$player[1] ." ". $player[2] ." ". $player[3] ." ". $player[4]
then i guess you should use mysql_fetch_row
instead.
then your code will be
while($player=mysql_fetch_row($var2)) {
Try this
<?php
$player=mysql_fetch_row($var2);
$goal=mysql_query("SELECT A.Minute+A.Minuteadditional from Appearance A
where A.Type=1 and A.Appearance_ID in (Select M.ID_Matches from Matches M
where M.Player_ID = $player[0] and M.Match_ID = $match)",$connection);
while($g=mysql_fetch_row($goal)) {
echo $g[0] .", ";
}
?>