Hi. I have a problem with text output instead of foreign key.
$shared = R::findAll( 'template_workers');
echo ('<table class="table">
<thead class="thead-inverse">
<tr>
<th>#</th>
<th>Класс</th>
</tr>
</thead>
<tbody>');
foreach($shared as $row){
echo '<tr>';
echo '<th class="col col-lg-2">'.$row['id'].'</th>';
echo '<td>'.$row['template_id'].'</td>';
echo '<td>'.$row['workers_id'].'</td>';
}
echo ('</tbody></table>');
At output looks like this
# | phrase | name
1 | 1 | 1
2 | 2 | 2
3 | 3 | 3
Any ideas what I'm doing wrong?
Thanks,
Abi