Stroing a multidimensional array into a mysql database

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
me_great
Forum Newbie
Posts: 2
Joined: Sun Apr 06, 2008 11:17 am

Stroing a multidimensional array into a mysql database

Post by me_great »

Hi,

Please help me to save a multidimensional array in a mysql database.

Thanks.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Stroing a multidimensional array into a mysql database

Post by Christopher »

Do you want to store it in multiple records or one record?
(#10850)
me_great
Forum Newbie
Posts: 2
Joined: Sun Apr 06, 2008 11:17 am

Re: Stroing a multidimensional array into a mysql database

Post by me_great »

I want to store it (the multidimensional array) in one database field.
arborint wrote:Do you want to store it in multiple records or one record?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Stroing a multidimensional array into a mysql database

Post by Christopher »

Use serialize()/unserialize()
(#10850)
Post Reply