Jump to content

[SOLVED] PHP Code - Is this right?


Bullet

Recommended Posts

  $fetch=mysql_fetch_object(mysql_query("SELECT money FROM users WHERE username='$send'"));

$new_bank = $crew->bank - $money_amount2;

            $mon = $fetch->money + $money_amount2;

mysql_query("UPDATE users SET money='$mon' WHERE username='$send'");

mysql_query("UPDATE crews SET bank = '$new_bank' WHERE name='$crew->name'");

    $date = gmdate('Y-m-d H:i:s');

 

Is there anything wrong with the code? 'Cause it ain't working :s it isn't setting the users money.

Link to comment
https://forums.phpfreaks.com/topic/121093-solved-php-code-is-this-right/
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.