Answered
Sort out similar strings from a query
Hello
I'm stuck. Below you see the content of my table 'hersteller'. As you see the names 'Bertschi' and 'Flückiger Hemmi' appear more than one time.
In the end I would like to create a pull-down (in html) which sould look like:
<option value="157,164">Bertschi</option>
<option value="158">Bonsma</option>
<option value="159">Bürli</option>
<option value="160,162,163">Flückiger Hemmi</option>
<option value="161">Kornoski</option>
So far I can SELECT from 'hersteller' but every row is listed (that's quite normal). But how do I go on from here. I have no idea how to parse in a query result for similar strings. And no idea about collecting then hersteller_IDs I need.
I'm very thankfull for any hints
Regards
I'm stuck. Below you see the content of my table 'hersteller'. As you see the names 'Bertschi' and 'Flückiger Hemmi' appear more than one time.
In the end I would like to create a pull-down (in html) which sould look like:
<option value="157,164">Bertschi</option>
<option value="158">Bonsma</option>
<option value="159">Bürli</option>
<option value="160,162,163">Flückiger Hemmi</option>
<option value="161">Kornoski</option>
So far I can SELECT from 'hersteller' but every row is listed (that's quite normal). But how do I go on from here. I have no idea how to parse in a query result for similar strings. And no idea about collecting then hersteller_IDs I need.
I'm very thankfull for any hints
Regards
