okk, got some problems. i switched hosts. and tried to do the counter, and its not working.
here's the code:
<?
$host = "*";
$user = "";
$db = "neoporta_counter";
$pass = "***";
mysql_connect($host,$user,$pass);
mysql_select_db($db);
mysql_query("update hits set hits = hits + 1");
$result = mysql_query("SELECT hits from test");
$row = mysql_fetch_array($result);
echo $row['hits'];
echo $hits;
?>
and when i run the page, hoping it will print 1 or something to the page, i get this 'warning':
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/neoporta/public_html/counter.php on line 13
can anyone help me?