Select Section:

Enter Your Registration Number


[insert_php]

function ShowMiddleData()
{
global $result;
echo “

Student Name: “; print strtoupper($result[0]->StName);
echo” [ “;print $result[0]->GrNo; echo ” ]

“;
echo “

Father’s Name: “;print $result[0]->FName;echo”

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

Caste: “; print $result[0]->Caste; echo”
Class: “; print $result[0]->Class; echo”
Section: “; print $result[0]->Section; echo”

“;
if($result[0]->held==’yes’)
{
echo ”

Sorry! Result withheld due to non-payment

“;
}
else{
echo ‘

‘;
echo ”

“;
echo ‘

‘;
echo”

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo ”

English Math Physics Chemistry Biology Geography Urdu Sindhi Islamiat History Computer Obt.Marks Percent% Grade
“. $result[0]->English.” “. $result[0]->Math.” “. $result[0]->Physics.” “. $result[0]->Chemistry.” “. $result[0]->Biology.” “. $result[0]->Geography.” “. $result[0]->Urdu.” “. $result[0] ->Sindhi.” “. $result[0]->Islamiat.” “. $result[0]->History.” “. $result[0]->Comp.” “. $result[0]->ObtMarks.” “. $result[0]->Per.” “. $result[0]->Grade.”

“;
}}

/*=========================================SSC1 UDF==========================================*/

function ShowSSCData()
{
global $result;
echo ”

Student Name: “; print strtoupper($result[0]->StName); echo” [ “;print $result[0]->GrNo; echo ” ]

“;
echo “

Father’s Name: “; print $result[0]->Fname; echo”

“;
echo “

“;
echo “

Class: “; print $result[0]->Class; echo”
Section: “; print $result[0]->Section; echo”

“;

echo ‘

‘;
echo ”

“;
echo ‘

‘;
echo”

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo ”

English Chem/Physics Bio/Comp/Math Urdu/Sindh PS/Islamiat Obt.Marks Percent% Grade
“. $result[0]->English.” “. $result[0]->ChemPhy.” “. $result[0]->BioComMath.” “. $result[0]->US.” “. $result[0]->PSIslamiat.” “. $result[0]->ObtMarks.” “. $result[0]->Per.” “. $result[0]->Grade.”

“;
}
/*================================================================================================================*/

/*=======================jun===============================================*/
function ShowJuniorData()
{
global $result;
echo “

Student Name: “; print strtoupper($result[0]->StName);
echo” [ “;print $result[0]->GrNo; echo ” ]

“;
echo “

Father’s Name: “;print $result[0]->FName;echo”

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

Caste: “; print $result[0]->Caste; echo”
Class: “; print $result[0]->Class; echo”
Section: “; print $result[0]->Section; echo”

“;
if($result[0]->held==’yes’)
{
echo ”

Sorry! Result withheld due to non-payment

“;
}
else{
echo ‘

‘;
echo ”

“;
echo ‘

‘;
echo”

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo ”

English Math Sci/GK Islamiat Urdu Sindhi Social Study Obt.Marks Percent% Grade
“. $result[0]->English.” “. $result[0]->Math.” “. $result[0]->ScGK.” “. $result[0]->Islamiat.” “. $result[0]->Urdu.” “. $result[0]->Sindhi.” “. $result[0]->SStudy.” “. $result[0]->ObtMarks.” “. $result[0]->Per.” “. $result[0]->Grade.”

“;
}}

/*==========================================================================================*/

if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’){
echo ‘‘;
$querystring=$_POST[‘sText’];
$Section=$_POST[‘sSection’];
global $wpdb;
global $result;

if($Section==”OLevel”)
{
global $result;
$result = $wpdb->get_results ( “SELECT * FROM wpj0_olevel_t where GrNo=’$querystring'” );
if(count($result)==0) {echo “

Sorry! we could not find your record…

“;}
else {ShowOLevelData();}
}
if($Section==”Middle”)
{
global $result;
$result = $wpdb->get_results ( “SELECT * FROM wpj0_ms_results_t where GrNo=$querystring” );
if(count($result)==0) {echo ”

Sorry! we could not find your record…

“;
}
else {ShowMiddleData();}
}

if($Section==”Junior”)
{
global $result;
$result = $wpdb->get_results ( “SELECT * FROM wpj0_results_t where GrNo=$querystring” );
if(count($result)==0) {echo ”

Sorry! we could not find your record…

“;}
else {ShowJuniorData();}
}

if($Section==”SSC1”)
{
global $result;
$result = $wpdb->get_results ( “SELECT * FROM wpj0_ss_results_t where GrNo=’$querystring'” );
if(count($result)==0) {echo ”

Sorry! we could not find your record…

“;}
else {ShowSSCData();}
}

}
[/insert_php]