This always stumps me

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 23, 2011   (RSS)

How do I get fields from a related table?

I want to list "events";
// load records
list($gigs_eventsRecords, $gigs_eventsMetaData) = getRecords(array(
'tableName' => 'gigs_events',
));


Te field "<?php echo $record['title:label'] ?>" is actually pulled from another table "artists". Each artist record has various fields such as "image", "URL" etc.

What is the best way of getting this related data?
Cheers,

Tim (toledoh.com.au)

Re: [Jason] This always stumps me

Thanks for that! Easy!
Cheers,

Tim (toledoh.com.au)