| New User? Sign Up Now to order lottery ticket services | ";
$temp.=" ";
echo $temp;
} else {
$login_Name=stripslashes(trim($login_Name));
$pwd=stripslashes(trim($pwd));
$login_Name=ereg_replace("'","''",$login_Name);
$pwd=ereg_replace("'","''",$pwd);
$login_Name=strtoupper($login_Name);
$sql = "select * from GR_LOGIN_INFORMATION where GR_LOGIN_ID='".trim(@$login_Name)."' and GR_PASSWORD='".trim(@$pwd)."'";//." and STATUS=1";
//echo $sql;
$rs = OCIParse($conn, $sql);
OCIExecute($rs);
OCIFetchInto($rs, $row, OCI_ASSOC);
if($row["GR_APPLICANT_ID"] == 0) {
$temp = " Sorry!
login or password you have typed is incorrect due to following reason(s);
Either you did not Qualify MPT or your Result for MPT has been Withheld. For further information, please contact 051-9223282, 051-9219845, 051-111-000-248
Forgot Your Password? | Back
";
echo $temp;
//exit();
} else {
if($row["STATUS"] == 0) {
$temp = "
Sorry!
your login has been disabled. Please contact Web Manager through email fpsc@fpsc.gov.pk for assistance
Forgot Your Password? | Back
";
echo $temp;
//exit();
} else {
$_SESSION["userId"]=$row["GR_APPLICANT_ID"];
$_SESSION["loginid"]=$row["GR_LOGIN_ID"];
$_SESSION["fname"]=strtoupper($row["GR_FIRST_NAME"]);
$_SESSION["lname"]=strtoupper($row["GR_LAST_NAME"]);
$_SESSION["cnic_no"]=trim($row["GR_CNIC_NO"]);
$_SESSION["uemail"]=trim($row["GR_EMAIL"]);
//$userId= $_SESSION["userId"];
?>
}
}
}
?>
|