NAME
Apache::Wyrd::Loop - Loop through SQL query results
SYNOPSIS
<BASENAME::Loop query="select name from contact">
<P>$:name</P>
</BASENAME::Loop>
<BASENAME::Loop
query="select name from contact where name is like 'S%'">
<b>$:name</b>
</BASENAME::Loop>
DESCRIPTION
Loop performs a given query and iterates through the result of the query, set
-ting the enclosed text for each query item and concatinating the results together. Unlike normal Wyrds, however, the enclosed text is NOT interpreted prior to this treatment, allowing Wyrds to be included in this template.
HTML ATTRIBUTES
- query
-
The query to pass to the SQL engine. Use Apache::Wyrd::Attribute if this query has unsafe characters (quote, <, etc.).
PERL METHODS
NONE
BUGS/CAVEATS/RESERVED METHODS
Reserves the _setup and _format_output methods.
AUTHOR
Barry King <wyrd@nospam.wyrdwright.com>
SEE ALSO
LICENSE
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GPL.
See LICENSE under the documentation for Apache::Wyrd
.