Cheers. What variables should I set? How does the code know the page has been requested??
Here is all my code now:
<?php
// Database connection
@ $db = mysql_pconnect('localhost', 'user', 'pword');
if (!$db)
{
echo 'Could not connect';
exit;
}
mysql_select_db('test') or die ('No Database');
$result = mysql_query('UPDATE counter SET count = count + 1') or exit(mysql_error());
$result = mysql_query('SELECT count FROM counter') or exit(mysql_error());
echo mysql_result($result, 0);
?>