php - webpage visted counter
<p>I am fetching the data from database and displaying near Home link , what i want to do is when Home Link is clicked it should go to next page and where the counter for that page is incremented and again updated in database .THAT is how many time that page is been visted</p>

<p>So my problem is since the while loop is run and as per match the record while be fetch from database . so now i want to determined how many time the link is clicked for each record displayed and store in database</p>

<pre><code>&lt;?php 

$i = 1;

while($row = mysql_fetch_array($strSql))
  {

?&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;li&gt;&lt;a href="#"&gt;Blog&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Photos&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Links&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
</code></pre>
