I have a search form that when people type in the exact name of the user it shows results but if they don't add a space inbetween first and last names or they do and that is not the name it won't show results.
Such as John Doe shows results but not Johndoe
Can I change this code below to show results for johndoe as well?
Code:
if(isset($_POST['search']))
{
$searchs = array();
if(!empty($_POST['contactname']))
{
$searchs[]="contactname LIKE '%".$_POST['contactname']."%'";
}