<?php require 'classes/inject_record.php'; if (!isset($_SESSION['name'])) { header('Location:index.php?login=login'); } if (isset($_POST['search_by_area'])) { $obj = new inject_record(); $result = $obj->report_by_area(); $total_inject = mysqli_num_rows($result); // $row = mysqli_fetch_array($result); // print_r($row); // exit(); } $obj = new inject_record(); $uc_result = $obj->get_uc(); ?> <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>Report</title> <?php require 'inc/head.php'; ?> </head> <body>