Forums

Count rows from second table

allanbeth 04 Dec, 2013
Hi all,

i'm having trouble getting a count of the number of rows from a second table i have set up using the Multi Table Settings Tab.

Debugger show all the correct items are there.

I am using the following to try and get the number of rows in the 'Messages' array (should be 2 in this instance. message_id 1 & 3)

$RecCount = count($row['Messages']);
echo $RecCount ;


I just get a 0

What am i doing wrong?

Kind Regards

Allan
allanbeth 05 Dec, 2013
Problem solved

Had to use the model ID from the first table in the code as well

$RecCount = count($row['Vehicles']['Messages']);
echo $RecCount ;


On to the next problems🙂

allan
This topic is locked and no more replies can be posted.