You are here: Re: multiple select/menu in a form, i use implode .....i have a problem « PHP SQL « IT news, forums, messages
Re: multiple select/menu in a form, i use implode .....i have a problem

Posted by ZeldorBlat on 02/06/06 16:29

Jim S. wrote:
> well J.O. Aho i thought about the multiselect, but the problem is , i
> have so many options, but i want only 4 or 5 to be selcted, and i do not
> know how to limit the multi select to just 4 or 5 (out of let us say 10)
>
> furthermore, the select/menu is part of a bigger form, and am afraid that
> "multi select could confuse the PP out of them ;)
>
> do u have any note on, can i store an array in a database? and how?
> code please if it is not too much trouble :D
> thanks again
> Jim

There's an easy way to put arrays into the database, albeit not the
greatest. But you seem to be interested in easy:

$a = array('foo', 'bar', 'baz');
$s = serialize($a); //$s is a string

//Insert $s into some text field in your database

//Get the string out of the database into, say, $x
$a = unserialize($x); //$a is an array again

 

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

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