>
>  $dat = $sth->fetchall_arrayref;
>  foreach $i (@$dat) {
>    foreach $j (@$i) {
>       print $j;

When using inside a Embperl page, don't forget to print to OUT, e.g.

    print OUT $j ;

>    }
>  }
>
> as i'm sure you're aware, embperl can do array traversal for you:
>
> [- $dat = $sth->fetchall_arrayref -]
> <table>
>   <tr>
>     <td>
>       [+ $dat->[$row][$col] +]
>     </td>
>   </tr>
> </table>
>

Additionaly you should be aware that this loop stops as soon as it sees the
first undef (NULL value from the database).

Gerald




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to