删除评论时出现奇怪的 PHP 错误

Weird PHP error when removing commments

我有以下一段代码:(第一行是数字 172)

                if("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) 
            {

                $buyerName = $httpParsedResponseAr["FIRSTNAME"].' '.$httpParsedResponseAr["LASTNAME"];
                $buyerEmail = $httpParsedResponseAr["EMAIL"];
                /*
                //Open a new connection to the MySQL server
                $mysqli = new mysqli('My stuff, not giving you meh passwords xD');

                //Output any connection error
                if ($mysqli->connect_error) {
                    die('Error : ('. $mysqli->connect_errno .') '. $mysqli->connect_error);
                }       

                $insert_row = $mysqli->query("INSERT INTO BuyerTable 
                (BuyerName,BuyerEmail,TransactionID,ItemAmount)
                VALUES ('$buyerName','$buyerEmail','$transactionID',$ItemTotalPrice);

                if($insert_row){
                    print 'Success! ID of last inserted record is : ' .$mysqli->insert_id .'<br />'; 
                }else{
                    die('Error : ('. $mysqli->errno .') '. $mysqli->error);
                }
                */

                echo '<pre>';
                print_r($httpParsedResponseAr);
                echo '</pre>';
            } else  {
                echo '<div style="color:red"><b>GetTransactionDetails failed:</b>'.urldecode($httpParsedResponseAr["L_LONGMESSAGE0"]).'</div>';
                echo '<pre>';
                print_r($httpParsedResponseAr);
                echo '</pre>';

            }

看到那个多行评论了吗?当我删除它时,出现以下错误:

Parse error: syntax error, unexpected 'color' (T_STRING) in *path to file* on line 201

我不知道是什么原因导致的,因为第 201 行是

echo '<div style="color:red"><b>GetTransactionDetails failed:</b>'.urldecode($httpParsedResponseAr["L_LONGMESSAGE0"]).'</div>';

里面连'color'都没有!请帮我解决这个问题,我不知道该怎么办了。还尝试注释掉该行,但没有效果。是系统错误还是我的代码错误?

您在 $ItemTotalPrice

之后的 sql 声明中遗漏了最后一个双引号
$insert_row = $mysqli->query("INSERT INTO BuyerTable 
                (BuyerName,BuyerEmail,TransactionID,ItemAmount)
                VALUES ('$buyerName','$buyerEmail','$transactionID',$ItemTotalPrice);