</div> <!-- END EXAMPLE ALERT --> <!-- BEGIN SiTE INFORMATIONS --> <div class="row marginBottom"> <div class="col-sm-3"> <div class="the-box no-border bg-success tiles-information"> <i class="fa fa-users icon-bg"></i> <div class="tiles-inner text-center"> <?php $to_date = '2015-09-02 00:00:00'; $from_date = NULL; $product_id = NULL; $accounts = new accounts(); $results = $accounts->get_sales_report($product_id, $to_date, $from_date); // print_f($results); $total = 0; foreach ($results as $value) { $price = $value->sales_price; $qty = $value->sales_quantity; $subtotal = $price * $qty; $total += $subtotal; } ?> <p>TODAY SALES</p> <h1 class="bolded"><?php echo $currency . $total; ?> </h1> <div class="progress no-rounded progress-xs">