lisaw has asked for the wisdom of the Perl Monks concerning the following question:
And the individual categories that I would like a "count" for look like this:art.gif=ArtsDance=The Arts - Dance $index=0; foreach $cat (@catagories) { @line_pair = split(/=/,$cat); $catagorypicture = $line_pair[0]; $catagorylink = $line_pair[1]; $catagorydescription= $line_pair[2]; print "<a href=\"$cgidir/classifieds.cgi?catagory=$catagorylin +k\" ><img src=\"$htmldir/$catagorypicture\" border=0 align=center> <B +>$catagorydescription</B></a><br>"; $index++; if ($index==3) { $index=0;
Any help would be greatly appreciated...Lisopen(DATAFILEIN,"$catagory.dat") || print "This section is + currently empty...Please check back often!"; print "<table border=1 width=\"95%\">"; while (<DATAFILEIN>) { chomp $_; @line_pair = split(/=/,$_); $time = $line_pair[0]; $name = $line_pair[1]; $email= $line_pair[2]; $phone= $line_pair[3]; $subject= $line_pair[4]; $data= $line_pair[5]; $time2 = $line_pair[6]; $data = &stripBadHtml($data); $password= $line_pair[8]; $pictureurl= $line_pair[7]; $priceline= $line_pair[9];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding an entry count for each DB
by newrisedesigns (Curate) on Oct 16, 2002 at 00:19 UTC | |
|
Re: Adding an entry count for each DB
by blokhead (Monsignor) on Oct 16, 2002 at 00:59 UTC |