how to get the specific match results in for keyword search |
[eluser]ashutosh[/eluser]
Now my code is working fine. But it is searching with case sensitive. i.e if i enter "The" as keywords, then it is showing only the `The` results with uppercase "The", it is not showing the text (i.e the)which are in lower case. How to solve this? Code: function suggestions() model Code: function GetAutocomplete($keyword)
[eluser]TheFuzzy0ne[/eluser]
You're not specifying any wildcards in your term: http://www.tutorialspoint.com/mysql/mysq...clause.htm
[eluser]ashutosh[/eluser]
stripos() - Find the position of the first occurrence of a case-insensitive substring in a string strrpos() - Find the position of the last occurrence of a substring in a string strripos() - Find the position of the last occurrence of a case-insensitive substring in a string strstr() - Find the first occurrence of a string strpbrk() - Search a string for any of a set of characters substr() - Return part of a string preg_match() - Perform a regular expression match |
Welcome Guest, Not a member yet? Register Sign In |