Re: Store array in mysql?

From: Date: Thu, 21 Aug 2003 15:39:36 +0000
Subject: Re: Store array in mysql?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-21203@lists.php.net to get a copy of this message
"Disko_kex" <disko_kex@swedish-mushroom.com> wrote in message 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

« previous php.windows (#21203) next »