Franz. Z.: Abschlußfrage

Beitrag lesen

			if (strtolower(strpos(utf8_decode($aUsers[$i]),$input)) !== false) {  
				$aResults[] = array( "id"=>($i+1) ,"value"=>htmlspecialchars($aUsers[$i]), "info"=>htmlspecialchars($aInfo[$i]) );  
			}  
  
  
  
  
		if (strtolower(substr(utf8_decode($aUsers[$i]),0,$len)) == $input)  
                                $aResults[] = array( "id"=>($i+1) ,"value"=>htmlspecialchars($aUsers[$i]), "info"=>htmlspecialchars($aInfo[$i]) );  
  

Warum ergibt die untere Abfrage ein stimmiges Ergebnis und die obere wirft mir praktisch alle db-Einträge aus, egal ob sie passen oder nicht??