"); 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(p.ssn_id)) AS cohort FROM [sisdb].[Performance].[2YrProgressionFallSpring] p WHERE p.fice_code = '".$fice_code."' AND p.academic_year = '".$acadyrx[$i]."' AND p.initial_cr_hrs >= 6;;"; $result2 = mssql_query($query2, $conn_id); $num2 = mssql_num_rows($result2); for ($b = 0; $b < $num2; $b++) { $line2 = mssql_fetch_assoc($result2); $cohort = $line2['cohort']; } echo("".number_format($cohort,0)." | "); // progress students $query3 = "SELECT COUNT(DISTINCT(p.ssn_id)) AS progress FROM [sisdb].[Performance].[2YrProgressionFallSpring] p WHERE p.fice_code = '".$fice_code."' AND p.academic_year = '".$acadyrx[$i]."' AND p.initial_cr_hrs >= 6; AND (p.cr_hrs_in_2_years >= '18' OR p.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("|||||||||||
NOTE: The cohort consists of students from the fall and spring