0

hello i am stuck at a problem, i have database where i have a column like this whose name is "tileused". it has tile names separated by "," comma. I need to display list of all tile names with their count in desc order.
for eg:
column name: tileused

And single cell looks like this:
"Antarca Rose Decor 2_90_30_Matt_AGL Official_patterned_1395.jpg,Antarca White_90_30_Matt_AGL Official.jpg,Antarca White_90_30_Matt_AGL Official.jpg,Antarca Rose Decor 3_90_30_Matt_AGL Official_patterned_1395.jpg,Antarca White_90_30_Matt_AGL Official.jpg,Antarca White_90_30_Matt_AGL Official.jpg,Satin Bianco_30_30_Matt_AGL.jpg"

all tile names separated by "," comma.

I need result as

<html>
<body>
<table width="" border="1" cellpadding="1" cellspacing="1">
<tr>
<th> tile name </th>
<th> count </th>
</tr>
<tr><td>Antarca Rose Decor 2_90_30_Matt_AGL Official_patterned_1395.jpg</td>
<td>1300</td></tr>
</body>
</table>

so far i have seen this solution, but haven't worked https://stackoverflow.com/a/37450240/9510852

If you can help me, it would be great. thanks in advance

full view of tablehere

0 Answers0