hi
i want to make a counter for my web page, i created table,where I count all acces from different IPīs to my site in column PRISTUPY (table POCITADLO)...
but there is a problem when i want to SUM this column:
i use it like this:
$sql= "SELECT sum(pristupu) as total FROM pocitadlo";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
echo $row['total'];
but on my site ,instead of counter,there is written this
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...
anyone who knows ,what sholud I do?