Hi, you need to do it like this:

<?php foreach($data as $field): ?>
         <tr align="left" valign="middle">
         <td><?php echo $field['w']['com_user_id']; ?></td>
         <td><?php echo $field[0]['c']; ?></td>
<?php $total += $field[0]['c'] ; ?>
<?php endforeach; ?>


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to