In my query I have:
$search .= "and title REGEXP '[[:<:]]$q[[:>:]]' ";
Which produces the following error in the Apache error log:
PHP Parse error: syntax error, unexpected '[', expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
I tried putting {} around it, but that didn't work either.
Thank you.