[dancer-users] Complex Query ?
WK
wanradt at gmail.com
Fri Jan 31 16:21:56 GMT 2014
2014-01-31 Hugues <hugues at max4mail.com>:
> resultC => $sth->fetchall_arrayref,
>
> ...
<td>[% loop.count %] - <a href="[% request.uri_base
> %]/detailClient/[% item.CodeClient %] "> [% item.CodeClient %]</a>
>
>
If you ask pure arrayref (fetchall_arrayref) you can't treat your data
being hashref. You have some options:
- call fetchall_hashref (but order will not remain same)
- call fetchall_arrayref({}) will give you every row as hashref (order
remains same too)
--
Wbr,
Kõike hääd,
Gunnar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20140131/ba1f4364/attachment.html>
More information about the dancer-users
mailing list