I have a problem with my page.
I try to load in Detail page a specific list from other table and matching to a filed (num) in the detail page.
list($test_listingRecords, $test_listingMetaData) = getRecords(array(
'tableName' => 'test_listing',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$test_listingRecord = @$test_listingRecords[0]; // get first record
// show error message if no matching record is found
if (!$test_listingRecord) { dieWith404("Record not found!"); }
list($eventRecords, $eventMetaData) = getRecords(array(
'tableName' => 'event',
'limit' => '6',
'where' => 'num="$test_listingRecord('posts_num')"', <----- This filed control by the first table ($test_listingRecords)
));