Re: [Dave] Search Field Issue
I think I know what the issue is. I added the code below to the search.php page to get rid of the white spaces
// remove white space
if (@$_REQUEST['name_keyword']) {
$_REQUEST['name_keyword'] = str_replace(" ", "", $_REQUEST['name_keyword']);
}
list($itemsRecords, $itemsMetaData) = getRecords(array(
'tableName' => 'items',
'where' => "REPLACE(name, ' ', '') LIKE '%".mysql_escape(@$_REQUEST['name_keyword'])."%'",
//'debugSql' => true,
'allowSearch' => false,
'limit' => '45',
));
I think I need to add the 'search_words' field as well to these statements in order for it to work not just the name_keyword.
How do I do this?