Menu
I have never used the following SQL request so please excuse my inexperience with it.
I am trying to create a search engine that looks through two columns in my database and returns the rows that contain matches.
I have set the columns to ‘Full Text’ and no errors are appearing when I load the page. It is just not getting any results!!
Here is my code:
[code=php]$profilesSQL=”SELECT * FROM profiles WHERE MATCH(name, rel) AGAINST (‘%$query%’) LIMIT 10″;
If I type ‘hel’ then I would expect to get the following results:
Hello
My name is Helen
etc…
Any help much appreciated.
Thanks