Increment Counter when click on Link
<p>Dear All :  Just to give more information , I have a search panel when certain criteria is given it fetch record from database and it display record . </p>

<pre><code>&lt;div id="menubar"&gt; 
  &lt;ul&gt;
    &lt;li class="current_page_item"&gt;
      &lt;a href="count.php" name="abc&lt;?php $i; ?&gt;"&gt;Home&lt;/a&gt;
      &lt;?php $_SESSION['Home']=$row['ID']; echo $_SESSION['Home'];?&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;

&lt;div id="menubar"&gt;
  &lt;ul&gt;
    &lt;li class="current_page_item"&gt;
      &lt;a href="count.php" name="abc&lt;?php $i; ?&gt;"&gt;Home&lt;/a&gt;
      &lt;?php $_SESSION['Home']=$row['ID']; echo $_SESSION['Home'];?&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>so now what i want is either type-1 : so now if one click on 1st record home link it will take page a.php and when click on record 2nd it should take to b.php . and record are generated dynamically how we will change the page name ie is ( a.php and b.php ) OR any other solution . what i want to do is for each page that is a.php or b.php i want to store how many time the page have been visited and store that counter in database</p>
