Welcome Guest, Not a member yet? Register   Sign In
How use MATCH(action) AGAINST(?)
#5

(04-30-2025, 06:54 AM)motoroller Wrote:
(04-28-2025, 10:39 PM)WitER Wrote:
(04-28-2025, 02:46 PM)motoroller Wrote: How use MATCH(action) AGAINST(?) in Query Builder Class
i have found only like mode

You can try to use RawSql:
PHP Code:
->where(new RawSql("MATCH(action) AGAINST ('words for search')")); 

Got it how use variable? and prevent sql Inhections?

PHP Code:
->where(new RawSql("MATCH(action) AGAINST ($variable)")); 

In a doc
Reply


Messages In This Thread
How use MATCH(action) AGAINST(?) - by motoroller - 04-28-2025, 02:46 PM
RE: How use MATCH(action) AGAINST(?) - by WitER - 04-28-2025, 10:39 PM
RE: How use MATCH(action) AGAINST(?) - by WitER - 05-01-2025, 03:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB