<table> <tr> <?php $sql = "Select * from sights"; $cell_count = 0; $id= $row['id_sight']; $cell_count++; if($cell_count%3 == 0){ $cell_count = 0; } } ?> </tr> </table>
<table> <tr> <?php $sql = "Select * from sights"; $cell_count = 0; $id= $row['id_sight']; $cell_count++; if($cell_count%3 == 0){ $cell_count = 0; } } ?> </tr> </table>