D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home5
/
rakcha
/
public_html
/
user
/
Filename :
check2.php
back
Copy
<?php session_start(); include("includes/database.php"); $select_query_main = "select * from wallet_payout ORDER BY payout_id ASC"; $run_main = mysqli_query($con,$select_query_main); while ($row_main = mysqli_fetch_array($run_main)) { $payout_id = $row_main['payout_id']; $growth_bonus = $row_main['growth_bonus']; $total_amount = $row_main['total_amount']; $total_amount_1 = $total_amount-$growth_bonus; mysqli_query($con,"update wallet_payout set total_amount='$total_amount_1', growth_bonus='0' where payout_id='$payout_id'"); } ?>