
Jason
Staff
/ Moderator

Aug 23, 2011, 10:58 AM
Post #13 of 13
(7692 views)
Shortcut
|
|
Re: [waterdancer] Exclude keyword from search results
[In reply to]
|
Can't Post
|
|
Hi, I took a look and I think I found the problem. Since the Miele is only part of the name, and not the entire name, we need to use the MySQL LIKE function. I changed the query to this:
list($productsRecords, $productsMetaData) = getRecords(array( 'tableName' => 'products', 'perPage' => '10', 'where' => "name NOT LIKE 'miele%'", )); This seems to be working now. Hope this helps, --------------------------------------------------- Jason Sauchuk - Programmer interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|