CREATE TABLE mycounter (count INT(11) UNSIGNED NOT NULL); INSERT INTO mycounter SET count = 0;
$result = mysql_query("SELECT count FROM mycounter"); $mycounter = mysql_result($result, 0) + 1; $result = mysql_query("UPDATE mycounter SET count = count + 1");
Show Your Support
$result = mysql_query("SELECT count FROM mycounter"); $mycounter = mysql_result($result, 0) + 1; $mycounter = number_format($mycounter); $result = mysql_query("UPDATE mycounter SET count = count + 1");