Jump to content

HELP WITH UPDATE MYSQL AND + AND -


nauir

Recommended Posts

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.