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 '' at line 1update tb_team set today=today+1, total=total+1 where team_id=