Re: Possible to store arrays in mySQL without explode()/implode()

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

 



On Saturday 07 June 2003 21:04, Jakob Mund wrote:
> is it possible to store an array in mySQL without using implode() /
> explode(), like this:
>
> $stuff['blob'] = "string";
> $stuff['hm'] = "G-string";
>
> mysql_query("INSERT INTO table VALUES ($stuff)");

serialize()

> and if, who must the mysql table be defined ?

Any *TEXT field large enough to hold it.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
It is better to have loved and lost -- much better.
*/


-- 
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