You are here: Re: an array to a database, am having hard time , help!! « PHP Programming Language « IT news, forums, messages
Re: an array to a database, am having hard time , help!!

Posted by xclarky on 02/05/06 14:57

ENUM is basically the same as SET however it allows NULL values.
Therefore this would be a wrong data type to use considering what you
are storing.

As you are storing an array, I would advise you to break it town to
text so you basically have a list of numbers, as you have done.

You can then store that list in your field, VARCHAR or TEXT should be
appropriate depending on the length of the list.

When retreiving the data you can use explode() or array_map() to create
an array of the numbers for whatever purpose you wish.

Hope that helps.

 

Navigation:

[Reply to this 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

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