$sql = "INSERT INTO mytable VALUES ('{$par[$j][$i]}')";