$query = @mysql_query("SELECT name, Count(*) FROM table WHERE name Like '%$q%'"); echo " There's <b>" . $query . "</b> results for the query <b>" . $q . "</b>.\n";