=str_to_date('" . $start_date . "','%d-%m-%Y') "; } if (isset($end_date) && $end_date != '') { $qry_filter .= " and date(doj) <=str_to_date('" . $end_date . "','%d-%m-%Y') "; } if (isset($month) && $month != '') { $qry_filter .= " and month(doj) in (" . $month . ")"; } ?> 1) { for ($j = 0; $j < sizeof($year1); $j++) { error_log("year:" . $year1[$j] . " size:" . sizeof($year1)); $qry_date = ""; $qry_date .= "and year(doj) <='" . $year1[$j] . "'"; $query = "SELECT patient_name FROM patient_master where YEAR(CURDATE())-year(dob)>=18 and YEAR(CURDATE())-year(dob)<=25 and status = 'Active' $qry_date $qry_filter"; $result = mysqli_query($conn, $query); ?> =26 and YEAR(CURDATE())-year(dob)<=30 and status = 'Active' $qry_date $qry_filter"; $result = mysqli_query($conn, $query); ?> =31 and YEAR(CURDATE())-year(dob)<=40 and status = 'Active' $qry_date $qry_filter"; $result = mysqli_query($conn, $query); ?> =41 and YEAR(CURDATE())-year(dob)<=50 and status = 'Active' $qry_date $qry_filter"; $result = mysqli_query($conn, $query); ?> 50 and status = 'Active' $qry_date $qry_filter"; $result = mysqli_query($conn, $query); ?> =18 and YEAR(CURDATE())-year(dob)<=25 and status = 'Active' $qry_filter"; $result = mysqli_query($conn, $query); ?> =26 and YEAR(CURDATE())-year(dob)<=30 and status = 'Active' $qry_filter"; $result = mysqli_query($conn, $query); ?> =31 and YEAR(CURDATE())-year(dob)<=40 and status = 'Active' $qry_filter"; $result = mysqli_query($conn, $query); ?> =41 and YEAR(CURDATE())-year(dob)<=50 and status = 'Active' $qry_filter"; $result = mysqli_query($conn, $query); ?> 50 and status = 'Active' $qry_filter"; $result = mysqli_query($conn, $query); ?>
AGE WISE DISTRIBUTION EMPLOYEE REPORT
Run Date :      User :
Filters Applied- Range: to , EMPLOYER/CONTRACTOR:, Gender:, OHC Location:, Patient Category:, Department:, Designation:, Employee Cadre:, Month:, Year:
For Year
Age in years(18-25)
Patient Name
Age in years(26-30)
Patient Name
Age in years(31-40)
Patient Name
Age in years(41-50)
Patient Name
Age in years(>50)
Patient Name
Age in years(18-25)
Patient Name
Age in years(26-30)
Patient Name
Age in years(31-40)
Patient Name
Age in years(41-50)
Patient Name
Age in years(>50)
Patient Name