Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Unable to compile ... home.pm line 1044

Quote Reply
Unable to compile ... home.pm line 1044
I've been trying to get a simple global routine (named "wax_count") to work with with DBSQL which I added using the Templates Global form.

Here's the code:
*****************
sub {
my $wax_db = $DB->table ('wax');
my $count = $wax_db->total;
return $count;
}
****************

in my template I put the tag <%wax_count%> (home.html), which generates the unable to compile error.

What am I doing wrong? I can get it to print text all day but as soon as I try to query a table I fail (at least I'm consistent).

Thanks,
Earl


Subject Author Views Date
Thread Unable to compile ... home.pm line 1044 Super 5275 Oct 31, 2001, 1:59 PM
Thread Re: [Super] Unable to compile ... home.pm line 1044
Paul 5210 Oct 31, 2001, 2:03 PM
Thread Re: [RedRum] Unable to compile ... home.pm line 1044
Super 5241 Oct 31, 2001, 2:09 PM
Thread Re: [Super] Unable to compile ... home.pm line 1044
Paul 5229 Oct 31, 2001, 2:12 PM
Thread Re: [RedRum] Unable to compile ... home.pm line 1044
Super 5180 Oct 31, 2001, 2:30 PM
Thread Re: [Super] Unable to compile ... home.pm line 1044
Bearwithme 5176 Oct 31, 2001, 2:35 PM
Thread Re: [Bearwithme] Unable to compile ... home.pm line 1044
604 5240 Oct 31, 2001, 2:39 PM
Thread Re: [TheStone] Unable to compile ... home.pm line 1044
Paul 5209 Oct 31, 2001, 2:48 PM
Thread Re: [RedRum] Unable to compile ... home.pm line 1044
Alex 5188 Oct 31, 2001, 4:06 PM
Post Re: [Alex] Unable to compile ... home.pm line 1044
Paul 5141 Oct 31, 2001, 4:13 PM
Post Re: [TheStone] Unable to compile ... home.pm line 1044
ktt 5128 Nov 1, 2001, 11:46 AM
Thread Re: [Super] Unable to compile ... home.pm line 1044
Alex 5189 Oct 31, 2001, 2:55 PM
Thread Re: [Alex] Unable to compile ... home.pm line 1044
Bearwithme 5161 Oct 31, 2001, 3:22 PM
Post Re: [Bearwithme] Unable to compile ... home.pm line 1044
Super 5194 Oct 31, 2001, 3:27 PM
Thread Re: [Bearwithme] Unable to compile ... home.pm line 1044
Alex 5173 Oct 31, 2001, 4:07 PM
Post Re: [Alex] Unable to compile ... home.pm line 1044
Bearwithme 5113 Nov 1, 2001, 4:30 AM
Thread Re: [Alex] Unable to compile ... home.pm line 1044
Alex 5179 Oct 31, 2001, 6:19 PM
Post Re: [Alex] Unable to compile ... home.pm line 1044
TheFox 5118 Nov 1, 2001, 6:11 PM