You can't store the array as an array, but what you can do is serialize
the array to create a string, then store THAT in the database.
For example:
$myarray = your array of stuff;
$myserializedarray = serialize($myarray) ;
$myserialized array is now a string that you can store in the database.
When you pull it out of the database, you can use the unserialize()
function to turn it back into an array.
See http://www.php.net/serialize for more information.
HTH
Sam Masiello
Software Quality Assurance Engineer
Synacor
(716) 853-1362 X289
[EMAIL PROTECTED]
-----Original Message-----
From: Glenn B. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 16, 2001 3:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Stupid question=p
Am I able to make a field an array in MySQL? Thanks.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]