ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

place each element of array in new record

marklandry 06 Dec, 2013
Hi,
I'm using the "add one" code from your faq herehttp://chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2700-how-can-i-have-a-button-to-add-more-form-inputs.html

Each new input is going nicely into the array - I'm getting this in the debug

[Student_Last_Name] => Array
(
[1] => aaaaaa
[2] => cccccc
[3] =>
[4] =>
[5] =>
)

[School_Attending] => Array
(
[1] => bbbbbb
[2] => dddddd
[3] =>
[4] =>
[5] =>
)


My problem is that I'd like to have each array value populate a new record in each column of the db (ie 'School_Attending' and 'Student_Last_Name').

As of now I get one record with all info for each column. For example in the new row under "School_Attending" I get

{"1":"aaaaaa","2":"cccccc","3":"","4":"","5":""}

Not sure where to go from here - thanx a ton for your help!!!

Mark
marklandry 08 Dec, 2013
Thanx! I'll give it a shot.
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com