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..? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.