If I had a database table containing an item and whatever was wrong with that item, for example:
Car Scratch
Car Dent
Car Rust
Bike Broken light
Bike Rust
How would I display this in an HTML table in the following format:
Car Scratch, Dent, Rust
Bike Broken light, Rust
To be insert into an HTML table as:
<tr>$name(Car)</tr>
<tr>$defects(scratch, dent, rust)</tr>