CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Tracking Links

Print topic Send  topic

Author Message
Sam
Posted: 03/14/2002, 9:59 AM

Does anyone know how to code the Links application in ASP to track the number of hits. ie
click through's.
Sam M
Posted: 03/14/2002, 10:24 AM

Hey Sam,
Here's an excert from a banner exchange I wrote. My prog is pretty complicated, but here's the jist of it.

Sub UpdateCredits()

Dim Rubber_Hose

Rubber_Hose = "update BANNERS set Credits = Credits - 1 " & _
" WHERE Bandaid = " & Session("Bandaid")
cn.execute Rubber_Hose

Rubber_Hose = "update BANNERS set Impressions=Impressions+1 " & _
" WHERE Bandaid = " & Session("Bandaid")
cn.execute Rubber_Hose

Rubber_Hose = "update BANNERS set Credits = Credits + 1 " & _
" WHERE AutoId = '" & Session("y") & "'"
cn.execute Rubber_Hose

End Sub

Most of this was session based, for example, the session of one user would be I and the other would be U credits would change hands from I to U when U's banner is loaded on I's site, or something like that.

The other way to do it is with a query or view where a physical entry is actually inserted, and comulated by the query or view within the database.

Good luck.
Sam
Posted: 03/14/2002, 10:30 AM

Thanks Sam M. Exactly what I was looking for.
feha
Posted: 03/14/2002, 12:53 PM

How to implement this on CC with PHP?
Sam M
Posted: 03/14/2002, 1:05 PM

Not a clue.
I'm an ASP and CFM guy.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.