EDIT: please note this query does not work with four+ letters either
I've been attempting to use the below query unsuccessfully. The problem is not that zero results return, but that the query itself seems to be broken as when I use var_dump to assess the query I get an error. This same code structure worked for me on another script so i'm not sure what i'm missing. I can't remember if there's a setting in php that I need to activate or similar? I am running on localhost using Xampp...
$sql = "SELECT * FROM cars WHERE MATCH (car_content) AGAINST ('test')" ;
$query = mysql_query($sql);
var_dump($query);
$num = mysql_num_rows($query);
Output:
bool(false)
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in
Any ideas what could be wrong? I have simplified the query to the above to try and get something working, but the actual query I want to run is for a site search function:
$sql = "SELECT * FROM cars WHERE MATCH (car_content, car_reference, car_tags) AGAINST ('$query')" ;
Thanks.