I am having a problem with doing a MySQL Full text search. The query that I am currently using is this:
Code: Select all
$query = "SELECT id, title, description, category, date, time,
MATCH(title,description, body)
AGAINST ('$query' IN BOOLEAN MODE) AS score FROM table
WHERE MATCH(title, description, body)
AGAINST ('$query' IN BOOLEAN MODE) ORDER BY score DESC";
I am using MySQL 3.23.57, and acording to the MySQL docs, that version does support full text search.
What's wrong? The error that I am getting is as follows:
Thanks,Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in F:\www\include\mysql.php on line 39
-Stephen