I'm currently making a search section for a script i'm making... but my problem is getting a good code to process the user's query.
For example, i want to make it, so when the user searches, say "apples OR bananas" i can create the query from that which i can just slot into an SQL query - basically to turn the user query into:
WHERE comes before this...
(field LIKE "%apples%" OR field LIKE "%bananas%")
and so on, including converting "AND"
Also, possibly for it to retain the brackets the user sets to group the or / and queries.
I dont know how to go about this... and any help would be greatly appreciated!!! 😃