returning all matched values in calc element

How can I return all of them?

  • I tried to put the result in an array

    Votes: 0 0.0%
  • Perhaps another option

    Votes: 0 0.0%
  • Not possible

    Votes: 0 0.0%

  • Total voters
    0

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?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top