I tried making a counter and the number always stays at one, neven if I refresh the page
The code is:
<?php
include"jocey.inc.php";
$connection = mysql_connect($host, $user, $password)
or die(mysql_error());
mysql_select_db($database, $connection)
or die(mysql_error());
$sql = "SELECT * FROM counter";
$select = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($select,MYSQL_ASSOC);
$counter = $row[number] + 1;
$query = "UPDATE members SET number='$counter'";
mysql_query($query) or die(mysql_error());
echo "$counter's people have been to this site";
?>