model/SLSUSERS.php
/**
     * Matches users with parts of username. Returns first 10 matches
     *
     * @param string $part Part to be searched with
     * 
     * @return mixed False if none was found or an array of at most 10 matches
     * */
Matches users with parts of username. Returns first 10 matches
@param string $part Part to be searched with

@return mixed False if none was found or an array of at most 10 matches
Matches users with parts of username . Returns first 10 matches @param string $part Part to be searched with @return mixed False if none was found or an array of at most 10 matches
public function searchWithTunnistePart($part) 
    {
        $part.='%';
        $s = "select tunniste from kayttaja where tunniste ilike :part limit 10;";
        $st = $this->pdoPrepare($s, $this->db);
        $this->pdoExecute($st, array("part"=>$part));
        return $st->fetchAll(PDO::FETCH_ASSOC);        
    }
public function searchWithTunnistePart ( $ part ) { $ part .= '%' ; $ s = " select tunniste from kayttaja where tunniste ilike :part limit 10; " ; $ st = $ this -> pdoPrepare ( $ s , $ this -> db ) ; $ this -> pdoExecute ( $ st , array ( " part " => $ part ) ) ; return $ st -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Matches users with parts of username.
Matches users with parts of username .