<?php if(!empty($data)){ foreach($data as $value){ ?> <tr> <td bgcolor="#FFFFFF" > <?php echo $value['id']?></td> <td bgcolor="#FFFFFF" style="color: red"> <?php echo $value['author']?></td> <td bgcolor="#FFFFFF" style="text-indent:1.5em;word-wrap:break-word; word-break:break-all;"> <?php echo $value['content']?></td> <td bgcolor="#FFFFFF" style="text-align:center"> <?php echo $value['dateline']?></td> <td bgcolor="#FFFFFF" style="text-indent:1.5em; color: blue"> <?php echo $value['reply']?></td> </tr> <?php } } ?> </table></td> </tr> </table> </body> </html>