Ho questa query:
codice:
$cerca = $_POST["cerca"];
$result = mysql_query("SELECT *, MATCH (`eventi`) AGAINST ('$cerca' IN BOOLEAN MODE) AS tot FROM `eventi` WHERE  (`eventi`) AGAINST ('$cerca' IN BOOLEAN MODE) ORDER BY tot DESC");
while ($row = mysql_fetch_array($result)) {
        $tit = $row["titolo"];
        $date = $row["data"];
        $txt = nl2br($row["testo"]);
        $link = $row["link"];
        $img = $row["img"];
        if ($img != "") {
            $image = "<img src=\"assets/images/" . $img . "\" width=\"290\" border=\"0\" align=\"left\" style=\"margin-right:14px\" >";
        } else {
            $image = "";
        }
        if ($link != "") {
            $fullstring = explode("/", $link);
            $sublink = $fullstring[0];
            $link = "<a href=\"http://" . $link . "\" target=\"_blank\" class=\"newslink\">" . $sublink . "</a> <span class=\"fa fa-external-link\"></span>";
        }
    }
ma invariabilmente mi restituisce questo errore:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given
con riferimento alla riga while ($row = mysql_fetch_array($result)) {
posto che la variabile $cerca viene trasmessa correttamente (verificato) qual'è allora il parametro mancante?