I echoed the query result and have the following:
SELECT * FROM products WHERE category = '7' AND MATCH (name) AGAINST ('the man hat')
the man hat are the keywords I entered in the previous form.
I believe I have the full text definition properly added to the 'name' field which seems to be necessary for a 'MATCH AGAINST' search criteria. I printed out my table structure. Is there a problem with this? Added a full text to the 'name' field which is the field I'm using in the search criteria for my query.
CREATE TABLE products (
id int(11) NOT NULL auto_increment,
name text NOT NULL,
description text NOT NULL,
price decimal(10,2) NOT NULL default '0.00',
photo varchar(50) NOT NULL default '',
category int(11) NOT NULL default '0',
quantity int(11) NOT NULL default '0',
PRIMARY KEY (id),
FULLTEXT KEY name (name)
) TYPE=MyISAM;
Last edited by crawfd