hey, ideally i would like to display all the fields, but it's not a
huge deal, i just want something to output. when i placed your code
in my view, it didn't work properly.
it generated the following HTML Table.
<table>
<tr><td>Array</td><td>Array</td></tr>
</table>
On Jul 9, 8:24 pm, Grant Cox <[EMAIL PROTECTED]> wrote:
> 1. Be more specific - what do you want it to look like?
>
> 2.
> <?php
> foreach($products as $key=>$value){
> echo'<tr>';
> foreach($value as $k => $v){
> echo '<td>' . $v. '</td>';
> }
> echo '</tr>';
>
> }
>
> ?>
>
> use $v not $value in your loop.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---