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

Your name:

Reply:


Posted by google on 10/07/05 17:53

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.)

What I really want is an enum type field that I can fill with more than
one value. I would use seperate fields (subcat1, subcat2 etc.) but the
field, presently called id_subcategory is special in that when my
script encounters 'id_' it uses the following characters
('subcategory') as the name of the table containing the values for the
html select form. Therefore I would need to have several separate but
identical tables to pull the subcategories from. Not impossible, but
annoying the have to update five tables each time a new category is
added.

Any experienced MySQL'ers have a solution to my problem ? Thank you

[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

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