ich hab ein poll system, also wenn man auf "vote" klickt,
dann wird folgendes script ausgeführt:
<?
include("mysql.php");
if(!isset($poll_vote)){
header("location: main.php?link=error&error=poll");
} else {
$result = mysql_query("SELECT * FROM polls_answers WHERE ID = '$poll_vote' AND ID_poll ='$poll_id'");
$row = mysql_fetch_array($result);
$votes = $row['votes'];
$max = $votes + 1;
"UPDATE polls_answers SET votes = '$max' WHERE ID_poll = '$poll_id' AND ID = '$poll_vote'";
header("location: main.php?link=home");
}
?>[/PHP]
Es stimmen alle variablen, hab ich vorher mit echo geprüft!
ABER es wird "votes" NICHT up gedated! wieso nicht?
Das feld votes ist INT!
Und meine variablen ($poll_id, $poll_vote) bestehen!
Also sind zb bei poll_ID 3 und bei vote_id 9!
Und es passt auch alles bis aud das, dass er mir dann statt "0" in der zelle der tabelle nicht auf "1" erhöht, sondern es bleibt "0"!
hmmm kann mir da wer helfen?
Danke!