Skyotica Posted June 3, 2006 Share Posted June 3, 2006 Hello, I am trying to fix the search for my site.It is a search for users and item names in the database.The problem is whenever a user submits "ITEM " instead of "ITEM", they recieve a "This item does not exist" message. I have seen many sites that allow users to submit either form of this. How would I be able to achieve this? Quote Link to comment https://forums.phpfreaks.com/topic/11063-search-help/ Share on other sites More sharing options...
legohead6 Posted June 3, 2006 Share Posted June 3, 2006 [!--quoteo(post=379512:date=Jun 2 2006, 08:49 PM:name=Skyotica)--][div class=\'quotetop\']QUOTE(Skyotica @ Jun 2 2006, 08:49 PM) [snapback]379512[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hello, I am trying to fix the search for my site.It is a search for users and item names in the database.The problem is whenever a user submits "ITEM " instead of "ITEM", they recieve a "This item does not exist" message. I have seen many sites that allow users to submit either form of this. How would I be able to achieve this?[/quote]whats the query your using? please show sum code Quote Link to comment https://forums.phpfreaks.com/topic/11063-search-help/#findComment-41373 Share on other sites More sharing options...
Vikas Jayna Posted June 3, 2006 Share Posted June 3, 2006 Use the trim function to remove the trailing spaces from the string being searched Quote Link to comment https://forums.phpfreaks.com/topic/11063-search-help/#findComment-41404 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.