WilliamMute007
Programmer
Hi all,
I am incredibly lost here. I am trying to implement a fulltext search on my mysql table. I think I have succefully done it but every time I query the table it returns unexpected result. i.e My table has the following data (Shiny Shoes Ltd). When I search for shoes, it returns no result but when I search for Shiny it gives result. so its very tricky. I just wanted it to return result if Shiney or Shoes or Ltd is typed in. Please can anybody help?
I have also included all my code to help diagnose the problem below.
Thank you so much for you help.
I am incredibly lost here. I am trying to implement a fulltext search on my mysql table. I think I have succefully done it but every time I query the table it returns unexpected result. i.e My table has the following data (Shiny Shoes Ltd). When I search for shoes, it returns no result but when I search for Shiny it gives result. so its very tricky. I just wanted it to return result if Shiney or Shoes or Ltd is typed in. Please can anybody help?
I have also included all my code to help diagnose the problem below.
Code:
Create table businesses(
id integer not null primary key auto_increment,
Company varchar(100),
ContactName varchar(100),
ServicesSummary varchar(50),
ServicesDetailed varchar(150),
fulltext(Company, ServicesDetailed)
) engine = MyISAM;
My Query is as followed
Code:
$sql = "Select * from `businesses3` where match(Company,ServicesDetailed) against ('".$keyword." with query expansion')";
Thank you so much for you help.