Alternative to slip string in this scenario?
Posted
by
MEM
on Stack Overflow
See other posts from Stack Overflow
or by MEM
Published on 2012-09-29T21:55:22Z
Indexed on
2012/09/30
9:37 UTC
Read the original article
Hit count: 196
php
I have the following information to dynamicaly display:
Product XYZ
Very nice
Very good
Very cool
Those Very nice, very good, very cool are advantages of a given product, textual, description advantages, normally display in a form of bullets.
I guess that it makes no sense to store those on a separate table called advantages, because it will never be used to anything else despite display, and I fill it as too overkill.
So I was thinking about creating a varchar255 field on this product table, and allow values to be inserted like:
Very nice;Very good;Very cool
On a free-form text input field.
Then split those on a php array.
My question is: Is it out there, a better approach ?
© Stack Overflow or respective owner