I have a dynamic page that retrieves data from a database. Say, for example, there are 2 records that are generated depending on the request. So what I want to do, when someone clicks the "Home" link on the first record, it should go to the next page, and there is a php code that will increase the counter, how many times the page will be displayed
Similarly, when the second Home link entry is clicked, it should go to some page, and then repeat the counter again so that this page grows
so say for example
Homepage - 1st Entry - Page: http://www.abc.com/Wakad-T4248349
Homepage - Second Entry - Page: http://www.abc.com/Himn-T3333333
Or another way to do this, please help
<div id="menubar">
<ul>
<li class="current_page_item">
<a href="count.php" name="abc<?php $i; ?>">Home</a>
<?php $_SESSION['Home']=$row['ID']; echo $_SESSION['Home'];?>
</li>
</ul>
</div>
<div id="menubar">
<ul>
<li class="current_page_item">
<a href="count.php" name="abc<?php $i; ?>">Home</a>
<?php $_SESSION['Home']=$row['ID']; echo $_SESSION['Home'];?>
</li>
</ul>
</div>
source
share