Storing a php variable in MySQL

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

 



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.

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux