Re: store an array in a mysqldb
| From: | Jonathan Hilgeman | Date: | Fri, 31 Aug 2001 15:14:13 +0000 |
| Subject: | Re: store an array in a mysqldb | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12033@lists.php.net to get a copy of this message | ||
Yikes - not sure what everyone else is smoking. That's the hard way. I
thought he was just asking if he could a variable that is an array inside a
database and retrieve it later as an array. If this is the case, you can use
the serialize() function to convert the array to data that can be stored in
a mySQL database and then unserialize()-ed later. Here's the manual
reference for some examples:
http://www.php.net/manual/en/function.serialize.php
- Jonathan
"Jeroen Van Bussel" <add@zeelandnet.nl> wrote in message
news:20010830154141.90659.qmail@pb1.pair.com...
> I would like to know if it is somehow possible to store an array in a
mysql
> DB.
>
> Could somebody please help me.
>
> greetz Jeroen
>
>