Hello.
Can anyone help with the below error:
Here is my code
$result=mysql_query("SELECT * FROM member WHERE personID=$user")or die('Could not connect:loggod line 30 iD' . mysql_error());
$row = mysql_fetch_array($result);
$balance = $row ['balance'];
$businesstype = $row['businesstype'] ;
$accountfrom=$_POST[accountfrom];
$accountto=$_POST[accountto];
$amount=$_POST[amount];
if($balance=>$amount){
$result = mysql_query("UPDATE member
SET balance = IF(personID = $accountfrom, balance-$amount, balance+$amount)
WHERE personID IN ($accountfrom, $accountto)")
or die(mysql_error());
}
else
echo" You do not have the funds available to do that
";
When i run this code i get the below error
Please can someone help me?