Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: html::template loops not showing data

by jbt (Chaplain)
on Jul 11, 2009 at 03:10 UTC ( [id://779078]=note: print w/replies, xml ) Need Help??


in reply to html::template loops not showing data

Your code on the server side is incorrectly using $wallref, try this:

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_dat +a, {%walldata}; } $template->param(WALL_LOOP => \@wall_data);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2024-04-25 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found