Re: Searching on AlphaNumeric Content Only

From: Date: Thu, 03 Sep 2009 17:47:23 +0000
Subject: Re: Searching on AlphaNumeric Content Only
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-297643@lists.php.net to get a copy of this message
> What's wrong with using the wildcards that are built into most SQL > variants? > > SELECT * FROM table WHERE item_id LIKE '%#abcdef' > > Will select all records where the item_id field ends in '#abcdef' That works if you know the user is always going to enter the last 7 characters of the product id, but that's not how the OP characterized the problem. The OP talked about search strings where multiple characters had been omitted from different parts of the product id. Ben

« previous php.general (#297643) next »