shaneHoll Posted November 10, 2013 Share Posted November 10, 2013 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 Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/public_html/transfer.php on line 264 Please can someone help me? Quote Link to comment https://forums.phpfreaks.com/topic/283772-parse-error-syntax-error-unexpected-t_double_arrow/ Share on other sites More sharing options...
Ch0cu3r Posted November 10, 2013 Share Posted November 10, 2013 (edited) The => here if($balance=>$amount){ should be >= Edited November 10, 2013 by Ch0cu3r Quote Link to comment https://forums.phpfreaks.com/topic/283772-parse-error-syntax-error-unexpected-t_double_arrow/#findComment-1457759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.