model/SLSUSERS.php
/**
     * Finds users with partial name
     *
     * @param string $part Part to be searched
     * 
     * @return mixed false if none was found or an array of matched users - max 5
     * */
Finds users with partial name
@param string $part Part to be searched

@return mixed false if none was found or an array of matched users - max 5
Finds users with partial name @param string $part Part to be searched @return mixed false if none was found or an array of matched users - max 5
public function searchWithNamePart(string $part) 
    {
        $part.='%';
        $s = "select nimi, tunniste from kayttaja where nimi ilike :part limit 5;";
        $st = $this->pdoPrepare($s, $this->db);
        $this->pdoExecute($st, array("part"=>$part));
        return $st->fetchAll(PDO::FETCH_ASSOC);        
    }
public function searchWithNamePart ( string $ part ) { $ part .= '%' ; $ s = " select nimi, tunniste from kayttaja where nimi ilike :part limit 5; " ; $ st = $ this -> pdoPrepare ( $ s , $ this -> db ) ; $ this -> pdoExecute ( $ st , array ( " part " => $ part ) ) ; return $ st -> fetchAll ( PDO :: FETCH_ASSOC ) ; }
Finds users with partial name
 @param string $part Part to be searched
Finds users with partial name @param string $part Part to be searched