SO im trying to generate and 8 x 8 table

while($a <= 8) {
    echo "<tr>";

    while($b <= 8) {
        echo "<td> tell me </td>";
        $b++;
    }

    echo "</tr>";
    $a++;
}

and i cant tell whats wrong

For anyone else who stumbles here since the OP did not provide the solution when Self-Answered.
If you start at 0 with the logic above it will produce 9 rows and 9 columns because 0 is the first step. 0-8 is nine steps.

$row = 0;
$column = 0;
while($row < 8){  //0-7 = 8 steps (<= 8 would be 9 steps)
    echo "<tr>";
    while($column < 8){ 
        echo"<td> - </td>";
        $column++;
    }
    echo "</tr>";
    $row++;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.