php - mysql - design a table with a column that can have multiple values -


i have table news.

id | title   | text    | date    | image ---------------------------------------------------------- 1     hi      r u ok?   5/5/2013   image1.jpg 2   bye  bye bye   6/6/2013   image2.jpg, image3.jpg 

and every piece of new can have more image, number of images. i've tried store in 1 column several images (like example), don't know how display news website.

title text images date 

how can foreach or while?

the best practice use second table use foreign key id of current table , image path image.


Comments

Popular posts from this blog

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -