OK i want to implement the searching feature using mysql.
Now to do this, i must use the WHERE MATCH Against clause but the problem is that in the below query
$sql = "SELECT * FROM users WHERE MATCH(username) AGAINST('LU' IN NATURAL LANGUAGE MODE)";
It will return rows where username matches ‘Lu’
It wont return rows if the username im looking for is ‘Lucase’ but searching for only two characters from the username.
This might be advanced but im ready for it and if someone could help me out, greatly appreciated.
I think what i want to do is search for rows matching the characters in a string.
I hope you understand what im trying to convey here!
You can use the boolean fulltext search. This is a feature, that supports many different operators.
http://dev.mysql.com/doc/refman/5.0/en/fulltext-boolean.html
In your case i would recommend you to search for: