Jump to content

Parse error: syntax error, unexpected T_DOUBLE_ARROW


shaneHoll

Recommended Posts

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.