php - How can I get the most popular words in a table via mysql? -


I have a table with a Blob column what I want to do, to select words and order them in order Is able to.

For example if it is contained in:

  • Bob Smith likes cheese but loves
  • Charlie likes chocolate milk <
  • Charles loves manga, but it also likes cookies

Then I'll find

  1. likes
  2. loves

As a result ... is this possible and if so?

I want to be able to do this only in mysql, but I can also use php.

Thanks in advance, Kenny

Do not think that someone to do this Is also built in MySQL functions so you can probably work for yourself using PHP explosion ('', $ myString) or str_word_count ($ myString, 1) To create an array containing each word then loop through each word in the array and count them.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -