Help with checking 'wallet' balance or other balance for purchase
from:

Currently, with the php web script that I’m using, this code works successfully (where the ‘wallet’ amount is used to buy videos) here's a portion of the file buy-video.php code:


// get cost video $db->where('name', 'video_play_price'); $db_cost = $db->getOne('config'); $video_cost = (float)$db_cost->value; $count_video = count($id_array); $user_id = $user->id; // copy the user id for some reason $wallet = (float)str_replace(',', '', $user->wallet);... PHP:

Help with checking 'wallet' balance or other balance for purchase

Poster :
chrisj