Bullet Posted August 24, 2008 Share Posted August 24, 2008 $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 More sharing options...
Bullet Posted August 24, 2008 Author Share Posted August 24, 2008 Fixed, my silly mistakes Link to comment https://forums.phpfreaks.com/topic/121093-solved-php-code-is-this-right/#findComment-624250 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.