hi NogDog
I applied fulltext index to the column and now the error is gone.
But now if i enter "DC4 charger" the i get results shown for all chargers whether they are dc4 or not.
and if i enter only DC4 then no result is shown.
$query="SELECT product_name FROM product_table WHERE MATCH(product_name) AGAINST('$keyword')";
is there any solution by which i can get results for product names that contains both the two words DC4 and charger like the product name is "genuine dc4 charger" or "dc4 genuine charger".
vineet
NogDog;10928217 wrote:To find out the exact problem, check to see if the return value from mysql_query() is false, and if so either echo mysql_error() or use log_error(mysql_error()) to log it.
My guess is that either the table being searched is not using the MyISAM engine, and/or you did not assign a FULLTEXT index to the column being matched.