I need to count the number of instances of a word in a column from my database and then get a true or false result depending on if it exceeds 36 instances. I use wordpress and I know that the connecction to the database is correct. And I am using wordpress.
This is what I got this far but its not working:
$selected = mysql_select_db("bringes_phpbb3", $dbConn) or die("Could not select database. The error was ".mysql_error());
    mysql_query("SET NAMES utf8");
    $SQL_COUNT ="SELECT COUNT(field_name) AS total_number FROM cyklister WHERE grupp LIKE CONCAT ('%','word','%')";
            $result = mysql_query($SQL_COUNT);
         if ($result >= 36){
         $awnser = true;
    mysql_free_result($result);
    mysql_close($dbConn);
The SQL query is not complete or may be far from what I am looking for. Can someone help me?
 
     
    