"); echo("
Academic Year = ".$acadyr."
"); echo(""); echo("| # | "); echo("Inst. Type | "); echo("Institution | "); echo("AY".$acadyr1." | "); echo("AY".$acadyr2." | "); echo("AY".$acadyr3." | "); echo("AY".$acadyr4." | "); echo("AY".$acadyr5." | "); echo("||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cohort | Progress | Percent | "); echo("Cohort | Progress | Percent | "); echo("Cohort | Progress | Percent | "); echo("Cohort | Progress | Percent | "); echo("Cohort | Progress | Percent | "); echo("|||
| ".$n++." | "); echo("".$inst_type." | "); echo("".$school_abbr." | "); //echo("".$fice_code." | "); for ($i = 0; $i <= 4; $i++) { // begins for statement // cohort students $query2 = "SELECT COUNT(DISTINCT(x.ssn_id)) AS cohort FROM [sisdb].[performance].[4yrprogression] x JOIN fice_table f ON x.fice_code = f.fice_code WHERE x.fice_code = '".$fice_code."' AND x.academic_year = '".$acadyrx[$i]."' AND x.initial_cr_hrs >= 6 AND x.degree_intent IN ('2', '4', '6', '7', '8');"; echo("".number_format($cohort,0)." | "); // progress students $query3 = "SELECT COUNT(DISTINCT(x.ssn_id)) AS progress FROM [sisdb].[performance].[4yrprogression] x WHERE x.fice_code = '".$fice_code."' AND x.academic_year IN ('".$acadyrx[$i]."') AND x.initial_cr_hrs >= 6 AND x.degree_intent IN ('2', '4', '6', '7', '8') AND (x.cr_hrs_in_2_years >= '18' OR x.award_in_2_years IS NOT NULL);"; //echo("".number_format($progress,0)." | "); $perc = ($progress * 100) / $cohort; echo("".number_format($perc,1)."% | "); } //ends for statement echo("|||||||||||