<?php require_once "./includes/initialize.php"; session_start(); $tf_id = $_SESSION['taskforce']; $doctor = doctor::find_by_tf($tf_id); //$doctors= doctor:: find_by_date($bdm); $total = pob::total_tf($tf_id); $last = pob::last_tf($tf_id); require_once './header.php'; ?> <?php if (!empty($total)) { foreach ($total as $totals) { ?> <div><b> Total Value POB</b> <?php echo $totals->sum; ?> <?php } } ?> </div> <div><b> Last Entered POB Value</b> <?php if (!empty($last)) { echo $last->pob; }