FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Click Counter





NG
Step 1
Creating a click counter is pretty simple. All it requires is after the code has been trigger, to add 1 to the given row. Sound easy enough?

The fields being used here are count, which can be inserted as a "SMALLINT(3) NOT NULL", url which can be "VARCHAR (50) NOT NULL", and lastly ID which depending upon your already installed script is up to you. Count is where the number of times a url has been clicked is stored, URL is where the page then redirects to.

The Code:



Step 2
I restated the other fields. I would suggest on doing that for all variables(fields). IE you would not have to reinsert ID, though this is just to lessen any confusion. And that's it. You can access it by start to linking sites by http://yoururlhere.com/?id=45 (45 being a variable).

Though now you may be wondering what the hell am i going to use that for?

Well, many things (or atleast 3).

Forum or News script (How many times a post has been read.)
Links or Banner Exchange script (How many visitors you have sent to one or you can even reverse it.)
Ladder program.(A ladder program can work the same way. A person reports a loss, which adds the given amount of points.)
Related topics
Counter strike
Favourite game? (OFFICIAL THREAD)
Select and click
script backup database
Ads problem
Pagecounter
Follow the user
100 Fps en Counter Strike
Download Counters
WhatPulse
would you like play counter-strike with superhero mod?
CONTEST OVER
javascript - another way to do this
TheCine Pay to Click
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.