Hi.
Try this. It loops through the inventories and then loops through the
photos and keeps all the information as you need it.
It might point you in the right direction.
<?php foreach ($inventories as $inventory): ?>
<tr>
<?php foreach($inventory['Photo'] as $photo): ?>
<td><?php echo $photo['img'];?></td>
<td><?php echo $inventory['Inventory']['title']; ?></td>
<td><?php echo $inventory['Inventory']['description']; ?></td>
<td><?php echo $inventory['Inventory']['cost']; ?></td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
Mike.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---