Storing a php variable in MySQL
| From: | Daniel Crespo | Date: | Wed, 25 Feb 2004 23:20:46 +0000 |
| Subject: | Storing a php variable in MySQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33130@lists.php.net to get a copy of this message | ||
Hi there. I want to save a variable (its structure and data) in MySQL.
I know the function "serialize(mixed value)", wich generates a storable
representation of a value. This storable representation has characters like
"{" and ":" (when talking about arrays). So, how can I store this in MySQL?
Wich type of field do I have to create in de DB? I tried the "longtext"
type, but it doesn't work. Any help? Thanks.