I am trying to be able to search for data in my database and want to be able to SELECT data WHERE a field contains, but doesn't neccessarily equal a string. Is there a certain operator that I should use in this case?
This is what I have:
$query = "SELECT name,occupation,email FROM people WHERE name='Jason'";
However, this will only select where the name is exactly 'Jason'.