Reply to Re: I want to store multiple values in a single field

Your name:

Reply:


Posted by NC on 10/08/05 01:58

google@charliefortune.com wrote:
>
> Is it possible to fill a field with multiple values ? I am cataloguing
> products that can fall into multiple subcategories (all of which are
> referenced by an id key to another table containing the subcat titles,
> i.e. 0=vintage, 1=mens, 2=womens etc.)

Bad idea. You need three tables; items, subcategories, and links.
Then an item cam have multiple links pointing to multiple
subcategories.

> What I really want is an enum type field that I can fill with more than
> one value.

This is not the way databases work, unfortunately...

Cheers,
NC

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация