PHP - DYNAMIC PAGE counter increment
<p>I have a dynamic page , which fetch data from database . Say for eg there are 2 record which is generated depending on query . So what i want to do is when some one click the Home link on 1st record , it should go to next page and over there php code is there which will increment the counter that is how many times the page is visted </p>

<p>Similarly when 2nd record Home link is clicked it should go to some page and then again again counter for that page is incremented </p>

<p>so say eg </p>

<p>Home Page - 1st Record - Page : <a href="http://www.abc.com/Wakad-T4248349" rel="nofollow">http://www.abc.com/Wakad-T4248349</a></p>

<p>Home Page - 2nd Record - Page : <a href="http://www.abc.com/Himn-T3333333" rel="nofollow">http://www.abc.com/Himn-T3333333</a></p>

<p>Or another way of doing this , please help </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>
