If your column name starts with a number, you have to quote it in backticks:
$query = "UPDATE users SET Points=Points+3 WHERE `1A`=$m1A";
and:
$query1 = "UPDATE rounds SET `1A` = 1";
And I would recommend using a prepared statement with bound parameters to avoid sql injection problems.
Edit: If your 1A
column is not an integer column and the values are strings, you need to quote them.
$query = "UPDATE users SET Points=Points+3 WHERE `1A`='$m1A'";
^ ^
Although that problem would be solved automatically with a prepared statement...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…