The query below will search users with the name and like and which email_activated = 1. Now I want the query to search for name like fname email_activated = 1 OR email_activated= 0. So if the query finds a name similar to Smith Joseph with email_activated = 1 OR email_activated= 0, then display, no matter if the email_activated field value is 1 or 0. Display both if there is two different names with that fields with value 1 and 0 two.
How can I achieve that query?
$queryString = "WHERE name LIKE '%$fname%' AND email_activated='1'";
1 Answer