ElectricWizard Posted October 20, 2013 Author Share Posted October 20, 2013 you could use either of the following - $row = $balanceQ->fetch_row(); $balance = $row[0]; or list($balance) = $balanceQ->fetch_row(); Both of those didn't give any errors, but the non clearing of the balance problem is still there. There are about four or five edits I did to this code which might potentially cause problems. They are: Line 27... $lastClaim = strtotime(current($lastClaimQ->fetch_assoc())); ...used to be: $lastClaim = strtotime($lastClaimQ->fetch_row()[0]); Line 54... $referral = $referralQ->fetch_assoc(); ...used to be: $referral = $referralQ->fetch_row()[0]; Lines 87 - 89... $row = $balanceQ->fetch_assoc(); if($row['balance'] >= 0){ $url = "https://inputs.io/api?action=send&key=$apiKey&pin=$apiPin¬e=" . urlencode($cashoutMessage . " | MyFaucet Powered") . "&address=" . urlencode($email) . "&amount=" . ($row['balance'] / 100000000); ...used to be: if($balanceQ->fetch_row()[0] >= 0){ $url = "https://inputs.io/api?action=send&key=$apiKey&pin=$apiPin¬e=" . urlencode($cashoutMessage . " | MyFaucet Powered") . "&address=" . urlencode($email) . "&amount=" . ($balance / 100000000); I am not sure if those tell you anything else that might be helpful. Link to comment https://forums.phpfreaks.com/topic/282719-unsupported-operand-types/page/2/#findComment-1454696 Share on other sites More sharing options...
ElectricWizard Posted October 21, 2013 Author Share Posted October 21, 2013 So I got the problem fixed! I got my hosting company to switch the php version manually to 5.4 and it works now! I replaced all of my ill thought edits with the original code, and it was a success Link to comment https://forums.phpfreaks.com/topic/282719-unsupported-operand-types/page/2/#findComment-1454865 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.