PROBLEMZZ!!!

0 Sid wadhwa · September 21, 2015
<?php
 require 'counter.inc.php';
 $user_ip = $_SERVER['REMOTE_ADDR'];
 
 function ip_exits ($ip){
  global $user_ip;
 
 }
 
 
 function update_count(){
  $query = "SELECT `count` FROM `hits_count`";
  if($query_run = mysql_query($query)){
   $count = mysql_result($query_run, 1 , 'count');
   echo $count;
  }
  
 }
 
 update_count();
?>





IN DATABASE : :
1 row and 1 field (field name=`count`)
value of count row 1 is '0'



//FOR MORE INFORMATION IT'S TUTORIAL NUMBER 124 - CREATING DATABASE HIT-COUNTER PART-2

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Sid wadhwa · October 1, 2015
For what purpose HTTP_REFERER is used for ..!


I know if we want to go from one website to another between multiple websites then this variable is used ! but I want to know the exact meaning ?  
0 Casper Hollemans · October 2, 2015
I don't know myself but I do know google :P

https://en.wikipedia.org/wiki/HTTP_referer
0 Sid wadhwa · October 2, 2015
can u sum-up nd then tell me ?
  • 1
  • 2

PHP

107,094 followers
About

Server-side, HTML embedded scripting language used to create dynamic Web pages.

Links
Moderators