prepare("SELECT * FROM pins WHERE pin =:p") ; $sql->bindparam(':p', $pins) ; $sql->execute() ; //$rowp = $sql->FETCH(PDO::FETCH_ASSOC) ; $rc = $sql->rowcount() ; if($rc > 0) { $_SESSION["rgno"] = $regno ; $_SESSION["pin"] = $pins ; $_SESSION["classid"] = $classid ; $sql1 = $DBcon->prepare("select * from pinassociate where PINCODE =:ps") ; $sql1->bindparam(':ps', $pins) ; $sql1->execute() ; $rct = $sql1->rowcount() ; if($rct > 0) { $row = $sql1->FETCH(PDO::FETCH_ASSOC) ; $pin = $row['PINCODE'] ; $owner = $row['REGNO'] ; $numbused = $row['NOUSED'] ; if(($owner == $regno) and ($numbused >= 4)) $msg[] = 'You have used this Pin above its Limit please buy another Card' ; if ($owner != $regno) $msg[] = 'THIS CARD HAS BEEN USED BY ANOTHER PERSON' ; } } else { $msg[] = 'Sorry the Pin you entered does not exist, Check the Pin and try again ' ; } if(empty($msg)) header("location: profile.php"); }// end if access, i.e, if pin exist ?>
Gently scratch off the silver coating at the back of the result scratch card and find your access pin. Enter your student registration number, the card pin at the field provided for them at the portal. select your class Id (e.g Jss 1A, ss 2B, primary 4A etc), Then Click Login button to proced and follow the screen instruction
| CLASS | DOWNLOAD |