Se uso questa query:
$user=uc($_COOKIE["usNick"]);
require('config.php');
$queryz = "UPDATE tb_users SET tmpvisits='0'
WHERE username='$user' ";
mysql_query($queryz) or die(mysql_error());
mysql_close($con);
Ottengo questo errore:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';UPDATE tb_users SET tmpvisits='0' WHERE username='martyn1970'' at line 1
il database è sotto mysql4, dove è l'errore???
Grazie anticipato dell'aiuto che mi darete.