Correction below!
I search a fairly large table for matches with this simple SQL question:
$result = mysql_query("SELECT *, MATCH(foretag, stad) AGAINST('$query') AS r FROM tblforetag WHERE MATCH(foretag, stad) AGAINST('$query')");
...but mysql_num_rows($result)
always returns 1.
I tried the exact same query (with the same value as $query) in HeidiSQL and it returned 45 results.
Any clues how to get rid of this problem?
Correction: As it turns out, the counting isn't the problem. This only returns one result on the PHP page, but not when executed directly in an MySQL prompt or in HeidiSQL (essentially the same thing).