In this case, if I really had to use the MySQL extension, I would use mysql_result(), e.g.,
$result = mysql_query("SELECT COUNT(*) FROM title WHERE title LIKE '%blue%'");
$count = mysql_result($result, 0);
echo $count;
if ($count == 0) {
echo "yes";
}
else {
echo "no!";
}
Note that I write $count == 0 instead of $count = 0, which corresponds to a fix to your problem.