[insert_php]

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

{
extract($_POST);

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

//chk result
$q = “select * from exam_result where exam_no=’$examno’ AND password=’$password’ AND classof=’$classof’ AND semester=’$semester’ AND myset=’$myset’ limit 1”;
$r = mysqli_query($con, $q);
$xp = mysqli_num_rows($r);

if($xp!=0)
{

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

echo “

RESULT SHEET FOR “.$semester.” SEMESTER “.$classof.” (Set “.$myset.”).

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

EXAM NUMBER $exam_no
ANA/PHY $ana_phy
PHC $phc
FON/A $fon_a
MICRO $micro
SOC $soc
PSY $psy
APP/SC $app_sc
NUT $nut
PHARM $pharm
ENG $eng
REMARK $remark

“;

echo “

“;

} else {
echo “E-RESULT CHECKER 

Result not found

Steps to print result sheet

  1. Enter your Examination Number
  2. Enter your Password, provided by management
  3. Select your Session
  4. Select your Set
  5. Select the semester
  6. “;

    echo “

    “;
    echo “Examination Number: “;
    echo “Password: “;
    echo “Session: “;
    echo “Set: “;
    echo “Semester: “;

    echo “

    “;

    }

    //post not
    } else {

    echo “E-RESULT SHEET 

    Steps to print result sheet

    1. Enter your Examination Number
    2. Enter your Password, provided by management
    3. Select your Session
    4. Select your Set
    5. Select the semester
    6. Click ‘Check Result’ menu to proceed

    “;

    echo “

    “;
    echo “Examination Number: “;
    echo “Password: “;
    echo “Session: “;
    echo “Set: “;
    echo “Semester: “;

    echo “

    “;

    }

    [/insert_php]