How can I generate a list of words from a MySQL/MariaDB table using PHP?
I have the following table:
id Title
1 A brief history of time
2 philosophy of ecucation
3 introduction to education
4 philosophy and astrophysics
5 astrophysics: astrophysics for dummies
What I am trying to accomplish is to have MySQL (or PHP) generate a result showing how often a word is used. Preferably each title should increase the counter for a word only by 1 (see id 5). My database contains roughly 10000 titles so fetching them all into one array in php should not be feasible.
count word
1 brief
2 philosophy
2(!) astrophysics <-- this counts only once
1 introduction
etc.