//Search!!! (Full-text)
$search = "SELECT *,
MATCH(kuup2ev, kell, nimi, kirjeldus, koht, korraldaja, kontakt, fail, muu) AGAINST('$key') AS score
FROM syndmused
WHERE MATCH(kuup2ev, kell, nimi, kirjeldus, koht, korraldaja, kontakt, fail, muu) AGAINST('$key')
ORDER BY score";
$result = mysql_query($search);
So I did some more debugging and finally found, that the error must be in the part of the script above. It seems, that there is no valid resource in the variable $search, because when I try to fetch an array with MYSQL_ASSOC, it says "mysql_fetch_array(): supplied argument is not a valid MySQL result resource" and echo "And the result is: $result" prints only the line "And the result is: "
Can anyone please help me to find out why it doesn't perform a search? Is there anything wrong with my syntax?
Any help is appreciated...