View on
MetaCPAN
Barry King > Apache-Wyrd > Apache::Wyrd::Loop

Download:
Apache-Wyrd-0.98.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.98   Source  

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 ^

Apache::Wyrd

General-purpose HTML-embeddable perl object

LICENSE ^

Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GPL.

See LICENSE under the documentation for Apache::Wyrd.

syntax highlighting: