<a href=""><?php echo $row["name"]; ?> </a> </td> <?php } ?> </tr> </table> <table class="documenttbl"> <tr class="documentshow"><td> Judgements</td></tr> <tr class="trboder"> <?php $documentcategoeyObj = new DocumentCategory(); $result = $documentcategoeyObj->getJudgements(); foreach ($result as $row) { ?> <tr class="trboder"> <td><img src="<?php echo SERVER_URL; ?> /images/folder.jpg" name="" rel="" height="30px" width="30px"/> <a href=""><?php echo $row["name"]; ?> </a> </td> <?php } ?>