Jump to content

how to count values?


Recommended Posts


     if (empty($count)) {
	$count=''; }

     if ($count == '') {
	$count ='1';  } else  {
	  $count++ ; }
     echo $count;
     echo '<br>';

My goal is to make a script that increments $count ever time someone downloads the page.


Can this be done without 'storing' the $count value?

Or should I create a script with fwrite/fopen or $_SESSION?



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...