Re: [PHP-DB] Saving arrays to databases?

2004-01-12 Thread Jason Wong
On Tuesday 13 January 2004 10:59, Jeroen Wasteels wrote: Is it possible to save an array to a database? And if so, how can I display the entire array when I retreive it from the database? If not, is there some other way to store several data in one colomn/row? serialize() unserialize() --

Re: [PHP-DB] Saving arrays to databases?

2004-01-12 Thread John W. Holmes
Jeroen Wasteels wrote: Is it possible to save an array to a database? And if so, how can I display the entire array when I retreive it from the database? If not, is there some other way to store several data in one colomn/row? http://us2.php.net/serialize -- ---John Holmes... Amazon Wishlist:

Re: [PHP-DB] Saving arrays to databases?

2004-01-12 Thread Cal Evans
The easy way (but not the recommended way) would be to serialize() the array and then stuff it into a TEXT field for later retrival and unseralize(). This would work if you are just storing the array for later use and don't need to select on it's contents. Personally, before I would go that