frankieJr Posted September 28, 2009 Report Share Posted September 28, 2009 Hii have a database running on HostMonster Server... the problem is that they do not allow customers to change settings.they say "The my.cnf file for the server is not accessible" .. basically wat i need to do is to change the min number of characters in search .. ft_min_word_len = 4 is the default, now since i cant do anything about that , how can i solve the problem in other ways... ? Link to comment Share on other sites More sharing options...
Synook Posted September 29, 2009 Report Share Posted September 29, 2009 You can check for a certain number of characters in a MySQL query using the CHAR_LENGTH() function. SELECT * FROM search_table WHERE CHAR_LENGTH(search_field) >= 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now