[PHP-WIN] Re: Store array in mysql?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Disko_kex" <disko_kex@swedish-mushroom.com> wrote in message
000001c367ec$f7b28340$e900a8c0@lokalguirdcfee">news:000001c367ec$f7b28340$e900a8c0@lokalguirdcfee...
> If I have a normal array like "Array ( [0] => 1 [1] => 3 [2] => 82 )" ,
> and want to store the array in a mysql table and then want to use it.
> How can I do?
>
> // jocke
>

There are at least two ways you can do this.  If you really want to use a
mysql table (not recommended) and your keys are all sequential integers,
just implode the array and save it in a text or long char field.  If you
just need to save the array temporarily between pages, use sessions.

  -- Rob



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux