Chrisj Posted December 6, 2022 Share Posted December 6, 2022 (edited) Any ideas/suggestions as to why this may not be succeeding? $up_user = $db->where('id', $video->user_id)->getOne(T_USERS); $uploader_wallet = $up_user->$user->wallet; $upwallet = ($sell_video == 0 && $uploader_wallet >= 1 ? .5 : 0); $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = `wallet`-'".$upwallet."' WHERE `id` = '".$video->user_id."'"); Success would be deducting .5 from the uploader's wallet account, when it has 1 or more, and when the sell price is zero. (The sell_price is located in the db video table and the wallet is located in the db users table.) I have tried echoing, but saw no display. I look forward to any helpful suggestions/guidance Edited December 6, 2022 by Chrisj Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.