In SQL it would be something like this:
SELECT * FROM table WHERE something LIKE '%maid%'
For a full PHP action:
$db = mysql_pconnect("localhost", "username", "password");
mysql_select_db("dbname",$db);
mysql_query("SELECT * FROM table WHERE something LIKE '%$searchItem%'",$db);
Hope that helps.