Gossamer Forum
Home : Products : DBMan : Customization :

please help with record count for HTML

Quote Reply
please help with record count for HTML
Please help.



I am using the following code below in my db.cgi file for record count. I have the record count displaying on all my screens fine. But how can I have it display the record count on a regular HTML file, maybe on a different server?

Thanks for any help.

Eddie

http://ai4uk.netfirms.com/






sub num_records {
# Displays number of records

my $count = 0;
open (DB, "<$db_file_name") or &cgierr("error in num_records. unable to open dat abase:$db_file_name.\nReason: $!");
LINE: while (<DB> ) {
if (!(/^#/) && !(/^\s*$/)) {
$line = $_;
chomp ($line);
@fields = &split_decode ($line);
++$count;
}
}
close DB;
print $count;



Subject Author Views Date
Thread please help with record count for HTML ai4uk 1944 Apr 27, 2002, 9:49 PM
Thread Re: [ai4uk] please help with record count for HTML
LoisC 1892 Apr 28, 2002, 11:26 AM
Post Re: [LoisC] please help with record count for HTML
sigrid 1829 May 21, 2002, 9:17 AM