Not sure if this is the best way as far as database design goes, but I have a TEXT type in my database that has a bunch of items separated by commas (item1, item2, item3, item4). However, I wanted it outputted as:
- item1
- item2
- item3
- item4
So does anyone have the code to do this or should I just go ahead and normalize my table?
you can use explode() to turn that string into an array and then loop through it to output the data
if you need to search the database for any content of that field it would make sense to normalise the db table though.