How to count impressions on referral link?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5850962/how-to-count-clicks-on-a-get-value-with-php">How to count clicks on a $_GET value with php?</a>  </p>
</blockquote>



<p>Hello. I have a script which generates every new user a referral link which they can use to invite thier friends to my site. (http://blabla.com/?ref=121212). The actual script works in this manner,</p>

<pre><code>http://blabla.com/?ref={$_SESSION['slogin']}
</code></pre>

<p>I'm wondering how to count the amount of clicks their link gets so i can display it on the page. Ex.</p>

<p><strong>Your link</strong>: <a href="http://blabla.com/?ref=121212" rel="nofollow">http://blabla.com/?ref=121212</a>
<strong>Clicks</strong>: 12</p>

<p>Anyone know how this can be done?</p>
