Click here to Skip to main content
15,917,610 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
sir, there is advt_hit column in database,
my query is below, I display in short:
PHP
if($num<>0) 
		{
		while($services = mysql_fetch_array($services_result)){?>				   

<a target="_blank" id="<?php echo $services[" class="content_blue1" href="http://`<?`php echo $services['advt_link'];?>"><font size="1"><b>    

<?php <br mode="hold" /?>
if($advt_link==$fixtext)    
		{    
////				echo 'nolink';    
		}    

else if($advt_link==null)     
	{     
//		 echo 'empty';     
	   }    
else      
	{     
	echo '&lt;img src="more_infoimage.gif" alt="More Info." /&gt;';     
	}    
     
/*  origional and working below     
if($advt_link!=null)    
		{     
		echo "More Info.";    
		}      
else    
	{    
		 //	echo 'jagdish';      
	} 
?&gt;     
</b></font></a>   

Note:
A) u can see that my query **is fetch with while loop...**
B) i want to count ***hit for specific link on clicked ..***
C) and also i want to add perpage 10 result

plz help... i try to search solution for this query on internet by different-different website but i cant find answer as my requirement..
plz help..help..........
thanks
Posted
Updated 6-Aug-12 0:38am
v3

1 solution

I can't make sense of this, but, to count how often a link was clicked, you need to store a hit in to the db inside that link. If the link is on a different website, you need to not use a direct link, but go to a page that stores what link was clicked, then redirects.
 
Share this answer
 
Comments
jd patel 6-Aug-12 6:37am    
sir, there is advt_hit column in database
Christian Graus 6-Aug-12 16:20pm    
OK, so you need to do what I said.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900