This would be three rows, and three coloums.
All you would need to do is create some count function to count up to 2 or 3, and each time it is, it's echoing the new <td></td>'s. After the count hit's to three, an if statement changes the code to echo only </tr><tr> and reset the counter back to 0. Have fun, try experiment.