I'm loading data from 2 tables using Multi Record Loader actions with Model IDs productions and producer.
The WHERE statements are blank for the time being and the form displays a list of Production Titles.
How can I call the related Producer's Name from the producer table in this list?
There are matching fields for the purpose: producer.cf_id = production.producer_cf_id
I tried using the Associated Models option but not sure if that's what it's for?
Perhaps I need to embed a WHERE clause within the foreach loop, but what would this look like?
Just can't get it working …
Nick
The WHERE statements are blank for the time being and the form displays a list of Production Titles.
How can I call the related Producer's Name from the producer table in this list?
There are matching fields for the purpose: producer.cf_id = production.producer_cf_id
I tried using the Associated Models option but not sure if that's what it's for?
Perhaps I need to embed a WHERE clause within the foreach loop, but what would this look like?
Just can't get it working …
<?php
$producer = $form->data['producer'];
foreach($form->data['productions'] as $production)
{
echo $production['title'];
//echo $producer['fname']; - how do I link this?
echo "<br />";
}
?>
Nick