In this web script, that I'm trying to modify, it has this section of php code:
I know that T_WITHDRAWAL_REQUESTS is the withdrawal_requests db table. So, does this chunk of code appear to take the withdrawal request amount from the table and load it into the page that displays the withdrawal requests history?
If not, what is this code doing? If so, is it possible to modify this code here to change the amount displayed? Such as displaying half of the amount (that is populated in the withdrawal history table's amount column) into the page that displays the withdrawal requests history ?
PHP:
$withdrawal_history = "";
if ($pt->setting_page == 'withdrawals') {
$user_withdrawals = $db->where('user_id',$pt->user->id)->get(T_WITHDRAWAL_REQUESTS);
foreach ($user_withdrawals as $withdrawal) {
$pt->withdrawal_stat = $withdrawal->status;
$withdrawal_history .= PT_LoadPage("settings/includes/withdrawals-list",array(
'W_ID' => $withdrawal->id,
'W_REQUESTED' => date('Y-F-d',$withdrawal->requested),
'W_AMOUNT' => number_format($withdrawal->amount, 2),
'W_CURRENCY' => $withdrawal->currency,
));
}
}
I know that T_WITHDRAWAL_REQUESTS is the withdrawal_requests db table. So, does this chunk of code appear to take the withdrawal request amount from the table and load it into the page that displays the withdrawal requests history?
If not, what is this code doing? If so, is it possible to modify this code here to change the amount displayed? Such as displaying half of the amount (that is populated in the withdrawal history table's amount column) into the page that displays the withdrawal requests history ?