Thanks for visual...again the codes would have to be tweaked...which I do not have time to do right now.
It is possible...just would take some time to re-work the script. The total records would be relatively easy to do..."the different records"...I am a bit confused about what you want, so you will have to be more specific. (Do you mean a different field being listed?)
But for the total number of records, try the following:
1) Add the following sub-routine in the records.cgi file:
Code:
sub numcat {
#------------------------------------------------------------------
# Displays number of categories
my $count = 0;
open (DB, "<$db_file_name") or
&cgierr("error in numbercat. unable to open database:$db_file_name.\nReason:
$!");
LINE: while ( ) {
if (!(/^#/) && !(/^\s*$/)) {
$line = $_;
chomp ($line);
@fields = &split_decode ($line);
$count;
}
}
close DB;
return $count;
}
2) Then add the following codes:
Code:
print qq|Total Number of Records:|; &numcat;
Hope this works and helps...
If it works (which it should), then I will add a flag variable to choose whether to have the Total Number of Records posted and then add the codes I've posted in this Thread.
Please be more specific about that different records request.
Regards,
------------------
Eliot Lee * Be sure to visit the
Resource Center for
FAQ's,
Modifications and
Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads.
----------------------
[This message has been edited by Eliot (edited February 17, 2000).]