model/SLSUSERS.php
/**
     * Checks to see if given membership number is in use
     * 
     * @param int $jasennumero Membership number to be checked
     * 
     * @return mixed existense of membership number in boolean or in json
     * **/
Checks to see if given membership number is in use

@param int $jasennumero Membership number to be checked

@return mixed existense of membership number in boolean or in json
Checks to see if given membership number is in use @param int $jasennumero Membership number to be checked @return mixed existense of membership number in boolean or in json
public function checkMember(int $jasennumero) 
    {
        $s = "select ". self::KÄYTTÄJÄTUNNUS. " from ". self::KÄYTTÄJÄ;
        $s .= " where ". self::JÄSENNUMERO. "=:jasennumero;";
        $st = $this->pdoPrepare($s, $this->db);
        $this->pdoExecute($st, array(self::JÄSENNUMERO=>$jasennumero));
        if ($st->rowCount()==0) {
            $res = false;
        } else {
            $res = true;
        }
        return $res;
    }
public function checkMember ( int $ jasennumero ) { $ s = " select  " . self :: KÄYTTÄJÄTUNNUS. " r om ".  s e f::K ÄY TTÄJÄ; $ s .= "  where  " . self :: JÄSENNUMERO. = :jasennumero;" ; $ st = $ this -> pdoPrepare ( $ s , $ this -> db ) ; $ this -> pdoExecute ( $ st , array ( self :: JÄSENNUMERO= >$ j asennumero) ) ; if ( $ st -> rowCount ( ) == 0 ) { $ res = false ; } else { $ res = true ; } return $ res ; }
Checks to see if given membership number is in use
Checks to see if given membership number is in use