Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

%grand_total%

Quote Reply
%grand_total%
I think this has been asked before, and I'm not using the right keywords in my searches to find the post, so feel free to refer me to the past discussion if you know where it is.

My %grand_total% = 567, yet:

mysql> select count(*) from Links;
+----------+
| count(*) |
+----------+
| 196 |
+----------+
1 row in set (0.00 sec)

mysql> select count(*) from CategoryAlternates;
+----------+
| count(*) |
+----------+
| 371 |
+----------+
1 row in set (0.00 sec)

196+371 = 567, but isn't that kinda misleading because the true size of my collection is only 196 urls?

Is there a way to change %grand_total% to reflect the number of records in the Links table?

Thanks in advance,

Brian
Quote Reply
Re: %grand_total% In reply to
Look in nph-build.cgi for:

$GRAND_TOTAL = $LINKDB->total + $total;

and replace it with:

$GRAND_TOTAL = $LINKDB->total();

Cheers,

Alex
Quote Reply
Re: %grand_total% In reply to
thanks!