View Single Post

  #1 (permalink)  
Old 14-04-2008, 10:32 AM
oliflorence oliflorence is offline
Frontpage User
 
Join Date: Jan 2007
Location: Navan, Co Meath
Posts: 29
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
oliflorence will become famous soon enough
Default Full text search returns an empty string, can't understand

Hello,
I have an sql search with data in a table which should be returned. However the I am getting an empty set back.
I enclose below the SQL I am using and the table:

Code:
SELECT poisonId, poison, latin_name, short_desc, status FROM tblpoisons WHERE MATCH (poison,latin_name,short_desc,full_desc) AGAINST ('%poison%')
Here is the table:
Code:
CREATE TABLE `tblpoisons` ( `poisonId` int(11) NOT NULL auto_increment, `catId` int(11) default NULL, `poison` varchar(150) default NULL, `latin_name` varchar(150) default NULL, `short_desc` varchar(250) default NULL, `Full_desc` mediumtext, `status` tinyint(1) default NULL, PRIMARY KEY (`poisonId`), FULLTEXT KEY `searchindex` (`poison`,`latin_name`,`short_desc`,`Full_desc`)) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
Many thanks
Reply With Quote