How do I use PHP to auto-increment a numeric variable on page refresh?
Foe example, for $i=10 there is an output of this:
$i=10
Page has be
you need to store the counter somewhere like a file, database, cookie or session variable.
1) { echo("This is visit number $visits."); } else { // First visit echo('Welcome to my Website! Click here for a tour!'); } ?>