Skip to content
Advertisement

Binding String using MATCH AGAINST in query

Binding to prepare statement using mysqli is working fine when I’m using query like this

JavaScript

but it’s nott working when I’m using this query

JavaScript

What is the right way of using MATCH() AGAINST() with a question mark in query for binding value.

Advertisement

Answer

New full code based on pastebin:

JavaScript

The problem was fixed by replacing MATCH with LIKE and concatenating the variable with percentage characters on both side.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement