I do not have the benefit of a PHP server to test this...
You need to parse the keywords and build the appropriate WHERE clause...
// Assuming the user must separate keywords with a valid boolean keyword...
$arg = "dog or cat and bird or canary and snake";
$words = explode(" ",$arg);
$sql="select * from table1 where content ";
// Now, you've got all the bools in the odd array elements (you should validate them too; I didn't here)...
$x=0;$y = count($words);
while (1==1) {
if ($x == $y) {break;}
$sql .= "LIKE '%$words[$x]%' ";
$x++;
$sql .= $words[$x] . " ";
$x++;
}