Hi and thanks in advance for your help
I have this code but every page give me always the last item ...
// load record from 'locali'
list($prodottiRecords, $prodottiMetaData) = getRecords(array(
'tableName' => 'prodotti',
'where' =>getNumberFromEndOfUrl(),
'loadUploads' => true,
'leftJoin' => array(
// foreign table => local field (that matches num in foreign table)
'azienda' => 'azienda',
),
));
$prodottiRecord = @$prodottiRecords[0]; // get first record