tacogrande has asked for the wisdom of the Perl Monks concerning the following question:
Web side:my @wall_data = (); while(my $wallref = $wallpostquery->fetchrow_hashref()) { my %walldata; $walldata{WALL_SUBJECT} = $wallref{'SUBJECT'}; $walldata{WALL_DATE} = $wallref{'DATE'}; $walldata{WALL_POSTID} = $wallref{'POSTID'}; $walldata{WALL_MESSAGE} = $wallref{'MESSAGE'}; push (@wall_data, \%walldata); ## i have also tried push @wall +_data, {%walldata}; } $template->param(WALL_LOOP => \@wall_data);
thanks for those that help, sometimes handling data types is hard for me. -Scott<TMPL_LOOP NAME="WALL_LOOP"> <h3><a href="#"><TMPL_VAR NAME='WALL_SUBJECT'> - Posted by <TM +PL_VAR NAME="WALL_POSTID"> on <TMPL_VAR NAME="WALL_DATE"></a></h3> <div id="wallmessage"> <p><TMPL_VAR NAME="WALL_MESSAGE"></p> </div> </TMPL_LOOP>
Node content and title restored by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: html::template loops not showing data
by jbt (Chaplain) on Jul 11, 2009 at 03:10 UTC | |
|
Re: html::template loops not showing data
by mzedeler (Pilgrim) on Jul 11, 2009 at 18:34 UTC | |
by Corion (Patriarch) on Jul 12, 2009 at 10:52 UTC | |
by mzedeler (Pilgrim) on Jul 12, 2009 at 20:44 UTC | |
by Anonymous Monk on Jul 12, 2009 at 09:19 UTC |