Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: HTML::Template - how to handle TMPL_LOOP parameter if no rows returned

by scorpio17 (Canon)
on Mar 04, 2011 at 18:56 UTC ( [id://891504]=note: print w/replies, xml ) Need Help??


in reply to HTML::Template - how to handle TMPL_LOOP parameter if no rows returned

If you need to handle the special case of having no data, you can do something like this in your template file:

<TMPL_IF LOGGED_EVENTS> <TMPL_LOOP LOGGED_EVENTS> ... </TMPL_LOOP> <TMPL_ELSE> No Data! </TMPL_IF>
  • Comment on Re: HTML::Template - how to handle TMPL_LOOP parameter if no rows returned
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://891504]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found