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()
--
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:
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