syntax for joined tables - $aData

Status
Not open for further replies.

cookn22

Active Member
Quick question: I'm doing post-processing of a form, simple eval. The table the form is for has a joined child table. I want to be able to mess with the child's data in the post-processing, too.

I know that the syntax for messing with the parent data is like this:
Code:
$aData['tablename___elementname'] = $whatever;

I figured that the way to do the same for the joined table after the form is submitted would be something like:
Code:
$aData['join[1]tablename___elementname'] = $whatever;

But, this code doesn't do anything! I'm assuming that I'm just not using the right keyname for the joined table, or $aData is set up differently than I thought. I'm not sure how to do a print_r($aData) and see the printed results...I thought that $aData had the same structure as $this->_data, but I guess I'm wrong?
 
Nevermind, I figured it out...I think.

Pretty sure the code looks like this:

Code:
$aData[join][join #]['tablename___elementname']
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top