I have a table in the mysql database where tags field values are stored in this format:
+-----------------+
| tags |
+-----------------+
| B27;C38;H45;B27 |
| C38;H45 |
| B24;C45;L55;K98 |
+-----------------+
I need to count, via mysql or php, the unique items in that column, row by row, so that the result brings me the count of unique items:
B27 -> 2
C38 -> 2
H45 -> 2
B24 -> 1
C45 -> 1
L55 -> 1
K98 -> 1
Thank you in advance.