|
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]
|