marozen
Member
In the calc element I have the following code to get a matching value from another table:
$db = FabrikWorker::getDbo($loadJoomlaDb = false, $cnnId = 3);
$query = $db->getQuery(true);
$query->select('description1')->from('plantspecies_photo1detail')
->where('plantid1 ='. (int) '{photo_names___id}')
$db->setQuery($query);
$results = $db->loadResult();
return $results;
The output is 1 "description1" from "photo1detail", but there are more records that match.
How can I return all of them?
$db = FabrikWorker::getDbo($loadJoomlaDb = false, $cnnId = 3);
$query = $db->getQuery(true);
$query->select('description1')->from('plantspecies_photo1detail')
->where('plantid1 ='. (int) '{photo_names___id}')
$db->setQuery($query);
$results = $db->loadResult();
return $results;
The output is 1 "description1" from "photo1detail", but there are more records that match.
How can I return all of them?