$player_array[$i][1...18]
The best way I can think of is to put everything in a string first. You can then use foreach to loop through values:
$sql="INSERT INTO player VALUES";
foreach ($player_array as $player) {
foreach($player as $item) {
$sql.=" ( '','Y', '$item'),";
}
}
This will give you a trailing "," which you can get rid of with:
$sql=preg_replace(",$", "", $sql);
and then execute the query:
mysql_query($sql);
Hope this works, I haven't tested it! Incidentally, I find it useful always to put queries into a variable first, and then pass the variable to mysql(), rather than a literal string. That way, if anything goes wrong wit your query, you can echo it out.
Good luck!