Here is my SQL code for a search box (table contains rankings for M and F) and I want to get data only for M:
"SELECT *
FROM players WHERE gender = 'M' AND
name LIKE '%{$keywords}%'
OR surname LIKE '%{$keywords}%'
";
I try to get values for players who are Men (M)
So it's important that Gender was M but for second and third WHERE clause I want to put OR