I have a search page on my website where you can type in the username of a person to bring up their profile although it only works when you type in their full username. I want to check if a rows username column contains a sequence of characters that the user types in so that when they type in: 'Mr' it will bring up the result 'MrDare360' and so on.
This is the code I have at the moment: http://pastebin.com/68dgLZf8
What would be the easiest or best way of doing this?