Wednesday, May 23, 2012

Re: Storing multidimensional Array into Database

Hey  Jeremy 

thanx for this. using this function i am able to insert auto updated fields like time id etc bt in place of my data field 0 is inserted.

On Wed, May 23, 2012 at 4:58 PM, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> wrote:
Look up the serialize PHP function, which converts it to a string. Use unserialize to convert it back to an array when you get it back out.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 23 May 2012, at 12:21:49, Teji wrote:

Hello Everyone..

i have an array whose print_r() output is
Array ( [deadlines] => Array ( [deadline] => Array ( [0] => Array
( [date] => 12/10/2011 [text] => My First Project Completed ) [1] =>
Array ( [date] => 12/2/2012 [text] => have to do something ) [2] =>
Array ( [date] => 12/5/2012 [text] => hv done something new ) ) ) )

i want to store it in my database.. how can i store it in my database.

as i am new in this so please describe all.

thanks in advance.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: