hi leute,
ich hab mal son bissl mysql gemacht und dabei mir etwas sehr merkwürdiges passiert.
in der fehlermeldung steht 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 ' `stone`=`stone` + 0, `iron` = `iron` + 0 WHERE id='6'' at line . das heißt, er hat alle werte. von ich jez "Update users set " in phpmyadmin eingebe und den teil aus der fehlermeldung ranhänge klappt alles. warum???
ich hab mal son bissl mysql gemacht und dabei mir etwas sehr merkwürdiges passiert.
PHP:
UPDATE `users` SET `wood`= `wood` + $newwod, `stone`=`stone` + $newstone, `iron` = `iron` + $newiron WHERE id='".mysql_real_escape_string($_SESSION["userid"])."'
in der fehlermeldung steht 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 ' `stone`=`stone` + 0, `iron` = `iron` + 0 WHERE id='6'' at line . das heißt, er hat alle werte. von ich jez "Update users set " in phpmyadmin eingebe und den teil aus der fehlermeldung ranhänge klappt alles. warum???