I have an articles table with a tags column. Each row in the column contains a string that looks like:
tag1, tag3, tag5, tag0 // separated via a comma
OR
tag1 tag6 tag5 tag8 // separated via a space
Note that the number appended to "tag" signifies a different word. I need to compare each row for duplicates and return the amount of times a word was duplicated, and then put it into a loop like:
- tag0 (1 times)
- tag1 (2 times)
- tag3 (1 times)
- tag6 (1 times)
- tag8 (1 times)
If you can help me, you will have my genuine thanks, after 6 hours of failed attempts. I did ask this same question earlier, but accepted the answer too soon. Mysql Results and array manipulation