ciao,
mi dite come mai non tiene conto del cookie nel conteggio dei voti??
grazie mille!!Codice PHP:
if (isset($VOTO) && ($VOTO>=0 || $VOTO<=11) && eregi("[0-9]+$",$VOTO) && !isset($HTTP_COOKIE_VARS["PMP{$PP}"])) {
$VOTO = (int) $VOTO;
setcookie ("PMP$PP", "y",microtime()+3600);
mysql_query("UPDATE ".$PMP["tabUser"]." SET voto = voto+$VOTO, nvoti = nvoti + 1, media = (voto+$VOTO)/(nvoti+1) WHERE id=\"$PP\" AND validato=\"y\"") or errore("Impossibile aggiornare i voti");
}
![]()