Hi guys
The code gives me this error
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 ' wars.score_own = 1 WHERE wars.id=26, wars.score_oppone
The Code:
$query="UPDATE played_locations AS pl,
wars AS wars
SET pl.location_id = CASE
WHEN pl.for_war=26 AND pl.round=1 THEN 3
WHEN pl.for_war=26 AND pl.round=2 THEN 3 END,
pl.opponent_score = CASE
WHEN pl.for_war=26 AND pl.round=1 THEN 73
WHEN pl.for_war=26 AND pl.round=2 THEN 78 END,
pl.own_score = CASE
WHEN pl.for_war=26 AND pl.round=1 THEN 80
WHEN pl.for_war=26 AND pl.round=2 THEN 80 END,
wars.finished = 1 WHERE wars.id =".$war_id.",
wars.score_own = ".$total_own_score." WHERE war
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --