I setup a Cron job on my web hosting which runs my code every minute. but I still got an error that I cannot run the script. I do not know whether my command is wrong. here I have attached the coding and the error I got.
below is my PHP code.
$select_user = mysql_query("SELECT * FROM users");
while($row=mysql_fetch_array($select_user)){
$normal_w = $row['normal_wallet'];
$interest_w = $row['interest_wallet'];
$normal_w = $row['normal_wallet'];
$run_interest = ($normal_w + $interest_w)*0.02;
$update = mysql_query("UPDATE users SET interest_wallet=interest_wallet-'$run_interest' WHERE status='active'");
} ?>
The command I use:
The error I get from the email:
Can someone help me?