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
if it's for the same user session, use a session
session_start(); if (!isset($_SESSION['counter'])) $_SESSION['counter'] = 0; $_SESSION['counter']++;
otherwise, if you want the same count for all users, use database