nauir Posted March 15, 2009 Share Posted March 15, 2009 $n=$bank[Money]+12000; $d=$bank[Money]+20000; mysql_query("UPDATE player SET Money=Money='$n' where id='$id' AND Status='normal'")or die(mysql_error()); mysql_query("UPDATE player SET Money=Money='$n' where id='$id' AND Status='Normal'")or die(mysql_error()); mysql_query("UPDATE player SET Money= Money='$d' where id='$id' AND Status='Diamond'")or die(mysql_error()); mysql_query("UPDATE player SET Money= Money='$d' where id='$id' AND Status='diamond'")or die(mysql_error()); mysql_query("UPDATE player SET Money= Money='$d' where id='$id' AND Status='Mod'")or die(mysql_error()); mysql_query("UPDATE player SET Money= Money='$d' where id='$id' AND Status='mod'")or die(mysql_error()); Its all odd because I've tried a hundred things. I give up. Give me super odd php scrict mysql odd version server asnwers..? Link to comment https://forums.phpfreaks.com/topic/149546-help-with-update-mysql-and-and/ Share on other sites More sharing options...
Mchl Posted March 15, 2009 Share Posted March 15, 2009 You did not say what your problem is. Change SET Money=Money='$n' to SET Money=Money+$n that's for start Link to comment https://forums.phpfreaks.com/topic/149546-help-with-update-mysql-and-and/#findComment-785349 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.