"; for ($y = 0; $y < 9; $y++) { echo ""; $count ++; } echo ""; } echo "

Sudoku

"; $count = 0; for ($x = 0; $x < 9; $x++) { echo "
"; $data = ""; if ($y == 2 || $y == 5) { $border = "border-right:2px solid #000000;"; } else { $border = ""; } if ($x == 2 || $x == 5) { $border .= "border-bottom:2px solid #000000;"; } // if (strlen ($sudoku[$count]) > 0 && $sudoku[$count] != " ") if (intval($sudoku[$count]) > 0 ) { $data = "value='" . $sudoku[$count] . "' readonly style='background:#DDDDDD; " . $border . "'"; } else { $data = " style='" . $border . "'"; } echo "\r\n\r\n"; echo "
"; ?>
Dietitian Designs phpSudoku by M-Software
Copyright © 2007 , www.nafwa.org , All Rights Reserved.