?> </td> </tr> <?php $grandTotalPrice = $grandTotalPrice + $TotalPrice; $grandTotalPrice = (double) $grandTotalPrice; } ?> <tr > <td height="35" colspan="9" align="right" valign="middle" class="lastTable">Grand Total : </td> <td align="right" valign="middle" class="lastTable"><?php echo $grandTotalPrice; ?> </td> </tr> </table></td> </tr> <?php for ($i = 0; $i < count($Data); $i++) { $DataItemUnit = $REPORT->retriveDailyRecivedItemUnitReports($Data[$i]['stock_item_unit_id']); ?> <?php $grandTotalPrice = $grandTotalPrice + $TotalPrice; $grandTotalPrice = (double) $grandTotalPrice; } ?> </table> </body> </html>