[PHP-DB] Possible to store arrays in mySQL without explode()/implode()

2003-06-07 Thread Jakob Mund
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));

and if, who must the mysql table be defined ?

thx
Jakob 'iNstinct' Mund



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



Re: [PHP-DB] Possible to store arrays in mySQL without explode()/implode()

2003-06-07 Thread Jason Wong
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