PHP while loop, table row
- by Elliott
Hi, I'm trying to loop through a database and output data into a div, if there are 3 divs horizontally accross it will the start a new tr until it reaches another 3 etc. It is currently outputted like :
[] [] []
[]
[] []
Currently I have it working when it reaches 3 it starts a new row, but I don't know how I can only echo a new tr once? As it…