[insert_php]

if(isset($_POST[‘check’]))

{
extract($_POST);

//connect and send reg details
$con = mysqli_connect(“localhost”, “conooorg_saly”, “{{Ssgkk4}}”)or die(“not connected”);
$db = mysqli_select_db($con, “conooorg_nursing”);

//chk result
$q = “select * from exam_result_cum where regnumber=’$examno’ AND password=’$password’ AND academicsession=’$classof’ limit 1”;
//print $q;
$r = mysqli_query($con, $q);
$xp = mysqli_num_rows($r);

if($xp!=0)
{

$row = mysqli_fetch_array($r);
extract($row);

echo “

CUMMULATIVE RESULT FOR $resultfor EXAMINATION
$academicsession ACADEMIC SESSION

“;

echo “

“;
echo “

“;
echo “

“;
echo “

NAME: $studentname
REGISTRATION NUMBER:     $regnumber

“;

echo “

“;

echo “

“;

if($phar_cum > 49){ $phar_remark = “PASS”; }else{ $phar_remark = “REF”; }
echo “

“;

if($diet_cum > 49){ $diet_remark = “PASS”; }else{ $diet_remark = “REF”; }
echo “

“;

if($health_cum > 49){ $health_remark = “PASS”; }else{ $health_remark = “REF”; }
echo “

“;

if($ict_cum > 49){ $ict_remark = “PASS”; }else{ $ict_remark = “REF”; }
echo “

“;

if($phcn_cum > 49){ $phcn_remark = “PASS”; }else{ $phcn_remark = “REF”; }
echo “

“;

if($osce_cum > 49){ $osce_remark = “PASS”; }else{ $osce_remark = “REF”; }
echo “

“;
echo “

COURSE 1ST SEMESTER 2ND SEMESTER TOTAL CUM REMARK
ANATOMY/PHYSIOLOGY AND PHARMACOLOGY $phar_1st $phar_2nd $phar_total $phar_cum $phar_remark
MED-SURG I AND DIETETICS $diet_1st $diet_2nd $diet_total $diet_cum $diet_remark
MED-SURG II AND MENTAL HEALTH $health_1st $health_2nd $health_total $health_cum $health_remark
FON/ICT/RESEARCH/STATISTICS $ict_1st $ict_2nd $ict_total $ict_cum $ict_remark
REPRODUCTIVE HEALTH AND PRIMARY HEALTH CARE $phcn_1st $phcn_2nd $phcn_total $phcn_cum $phcn_remark
OSCE $osce_1st $osce_2nd $osce_total $osce_cum $osce_remark

“;

echo “NOTE
“;
echo “

  • Candidates without REF should continue to the next block of their study.
  • “;
    echo “

  • Candidates with 1 AND 2 REF should prepare to write the exam $refdate.
  • “;
    echo “

  • Candidate with 1 and 2 REF are to pay N5000 to the College Union Bank account.

“;
echo “

  • Print the attached school financial guide for year three.
  • “;

    echo “

    “;
    echo ‘

    ‘;
    echo ‘
    ‘;

    } else {
    echo “E-RESULT CHECKER.

    Result not found

    Steps to print result sheet

    1. Enter your Registration Number
    2. Enter your Password, provided by management
    3. Select your Session
    4. Click ‘Check Result’ menu to proceed
    5. “;

      echo “

      “;
      echo “Registration Number: “;
      echo “Password: “;
      echo “Session: “;
      echo “

      “;

      }

      //post not
      } else {

      echo “E-RESULT SHEET.

      Steps to print result sheet

      1. Enter your Registration Number
      2. Enter your Password, provided by management
      3. Select your Session
      4. Click ‘Check Result’ menu to proceed

      “;

      echo “

      “;
      echo “Registration Number: “;
      echo “Password: “;
      echo “Session: “;
      echo “

      “;

      }

      [/insert_php]