Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view

Quote Reply
Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view In reply to
Craig,

I dunno. TheByrdMan never said what the "ugly" error messages were that he was getting so I just left it alone since he had a fix that seemed to work for him. The only thing I see in my code that might need changing is to use $rec{'ID'} instead of $rec[0]. Other than that, it should work.

His code doesn't even check to make sure a valid ID was even in the database to begin with, so the call to sub error in $goto or &error will never occur, even if there was no such ID.

Actually, I did find another error in my code. I forgot to include a "}" to end the "if" statement. The corrected code should be this:

Code:
# Let's get the URL.
open (URL, "<$db_links_name") or
&error ("unable to open database: $db_links_name. Reason: $!");
while (<URL> ) {
/^#/ and next LINE; # Skip comment Lines.
/^\s*$/ and next LINE; # Skip blank lines.
chomp; # Remove trailing new line.
@rec = &split_decode($_);
if ($id eq $rec{'ID'}) {
$goto = "$build_detail_url/$rec{'ID'}$build_extension";
last;
}
}
close URL;
$goto or &error ("Can't find link id: $id");

I hope this helps.

[This message has been edited by Bobsie (edited May 29, 1999).]
Subject Author Views Date
Thread How can I make the Hit count go up when the user clicks the link to the DETAILED view TheByrdMan 26880 May 18, 1999, 5:00 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Bobsie 26445 May 18, 1999, 7:41 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
TheByrdMan 26420 May 19, 1999, 12:47 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Craig A 26469 May 29, 1999, 12:23 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Bobsie 26468 May 29, 1999, 2:58 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
TheByrdMan 26476 May 29, 1999, 7:55 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Craig A 26447 May 29, 1999, 11:07 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Mutt 26379 Oct 16, 1999, 2:12 AM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Andrew Mitcham 26488 Feb 1, 2000, 11:48 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
TheByrdMan 26454 Feb 2, 2000, 2:49 AM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Andrew Mitcham 26439 Feb 2, 2000, 7:28 AM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
sponge 26464 Feb 2, 2000, 8:08 AM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
JL 26457 Feb 2, 2000, 1:02 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Andrew Mitcham 26445 Feb 2, 2000, 1:49 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
sponge 26421 Feb 3, 2000, 8:10 AM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
Andrew Mitcham 26426 Feb 3, 2000, 10:53 PM
Post Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
sponge 26489 Feb 4, 2000, 11:37 AM
Thread Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
TigerLily 26477 May 8, 2000, 7:19 PM
Thread Re: How can I make the Hit count go up when the user clicks the link to the DETAILED view
LILHOMIE 26040 Oct 16, 2009, 1:24 PM
Thread Re: [LILHOMIE] How can I make the Hit count go up when the user clicks the link to the DETAILED view
LILHOMIE 25949 Oct 30, 2009, 4:08 PM
Post Re: [LILHOMIE] How can I make the Hit count go up when the user clicks the link to the DETAILED view
LILHOMIE 25900 Oct 31, 2009, 1:24 AM