Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,473
There are 2034 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Php Counting Script

Thread title: Php Counting Script
     
    Thread tools Search this thread Display Modes  
Prev Previous Post   Next Post Next
03-29-2007, 01:46 AM
#1
Seraskier is offline Seraskier
Status: I love this place
Join date: Jan 2007
Location: Charlotte
Expertise:
Software:
 
Posts: 542
iTrader: 0 / 0%
 

Seraskier is an unknown quantity at this point

Send a message via AIM to Seraskier Send a message via MSN to Seraskier

  Old  Php Counting Script

I'm looking for a script that when a viewer looks at the page it will add one to the previous number that there was. Mainly refreshing, it will add a number. I also need it to clear when you leave the page. Maybe sessions? I know php well, but I cant seem to get this. I know I need something like $email + 1 = $emails idk something like that but it never works.. just takes it and adds one and then thats it.. doesnt keep adding, I also need to be able to have more than one counter on the same page. Maybe having the counter name as a random integer, something like that. I'm thinking.

Code:
<?php
$email = "1";
$emails = $email + 1;

echo $emails;
?>
something like that to just keep adding one from on...over and over and then clear when the page is closed, or when you click a button. maybe make it redirect and then before it redirects clears the thing, or assigns a new id for the counter and then clears all the counters when you close the page.

MSN/Email: jomar@carolina.rr.com

     


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed