davejones Posted July 1, 2004 Posted July 1, 2004 how can the search be changed so that it will remove "s" at the end of a word and search for eg. ants + ant
ryanf Posted July 1, 2004 Posted July 1, 2004 if (substr($keyword,-1) == 's') { $keyword2 = substr($keyword,-1); } Ryan If I was crafty, this would be a funny signature.
ryanf Posted July 1, 2004 Posted July 1, 2004 if (substr($keyword,-1) == 's') { $keyword2 = substr($keyword,-1); } Ryan If I was crafty, this would be a funny signature.
ryanf Posted July 2, 2004 Posted July 2, 2004 Your gonna need a lot more code than that, I thought you knew php but just wanted to know how to strip the S off. Ryan If I was crafty, this would be a funny signature.
davejones Posted July 2, 2004 Author Posted July 2, 2004 doh! i was hoping that this had to implemented into either advance_search.php or advance_search_result.php
ryanf Posted July 2, 2004 Posted July 2, 2004 it does. But I am saying that the code I put up above is just a part of what you will need. If I was crafty, this would be a funny signature.
ryanf Posted July 2, 2004 Posted July 2, 2004 I dont know, check the contribs, there might be one that does this already or one that you can modify. If I was crafty, this would be a funny signature.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.