Beach Racer Posted August 3, 2011 Share Posted August 3, 2011 on my website in the search it doesnt show items with a - .. but if u take the dash out and put a space it works.. try this search for atx-615w [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/ Share on other sites More sharing options...
ram4nd Posted August 3, 2011 Share Posted August 3, 2011 first of all, your website? You think that everybody figures out to go to your profile and get you website domain from your mail address? secondly, why would you tel us that if you ask for help, please post some code as it is coding forum Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251145 Share on other sites More sharing options...
Muddy_Funster Posted August 3, 2011 Share Posted August 3, 2011 publicity stunt Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251149 Share on other sites More sharing options...
Beach Racer Posted August 3, 2011 Author Share Posted August 3, 2011 i need some 1 that can help me fix a problem in the preg_replace need to add special characters like - dash/minus sign hyphen Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251281 Share on other sites More sharing options...
Muddy_Funster Posted August 3, 2011 Share Posted August 3, 2011 So show us the code for your search, give us something to work with. Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251294 Share on other sites More sharing options...
Maq Posted August 3, 2011 Share Posted August 3, 2011 We needs your codes, and an example of what you want to do. And is there a reason you attached your logo to your OP? Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251302 Share on other sites More sharing options...
Beach Racer Posted August 3, 2011 Author Share Posted August 3, 2011 when i search for atx-615w i get 0 results when i search for atx 615w i find what im looking for... i need to know how to put special characters in my preg_replace.. u know like hyphens plus symbols.. do u c the difference in the model # atx-615w has a hyphen the other doesnt i need my search box to find hyphens....thx for ur help Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251486 Share on other sites More sharing options...
Beach Racer Posted August 3, 2011 Author Share Posted August 3, 2011 this is my code $query[] = "(a.name REGEXP '( )*(" . Implode("|", explode(" ", preg_replace("/ +/", " ", $basic_search))) . ")( )*')"; Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251487 Share on other sites More sharing options...
phpSensei Posted August 4, 2011 Share Posted August 4, 2011 this is my code $query[] = "(a.name REGEXP '( )*(" . Implode("|", explode(" ", preg_replace("/ +/", " ", $basic_search))) . ")( )*')"; Thats some really really curly stuff you got there mate. Quote Link to comment https://forums.phpfreaks.com/topic/243654-search-engine/#findComment-1251588 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.