RE: [PHP-DB] Storing an array in the database

From: Date: Fri, 28 Feb 2003 16:11:08 +0000
Subject: RE: [PHP-DB] Storing an array in the database
Groups: php.db 
Request: Send a blank email to php-db+get-25999@lists.php.net to get a copy of this message
You could store it as a series of comma separated values in a text field and manipulate it using implode() and explode() on the comma separators. I've done this for small arrays and it works OK. WOuld like to know if there's an easier way though. Not that this is all that bad. I'm just lazy. ;^) HTH Rich > -----Original Message----- > From: Jonathan Villa [mailto:jvilla@isdesigndev.com] > Sent: Friday, February 28, 2003 11:10 AM > To: php-db@lists.php.net > Subject: [PHP-DB] Storing an array in the database > > > > How would I store an array in the database? I want to store 2 things. > One array of shirt sizes and one array of which holds other arrays. > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.db (#25999) next »