PHP mysqli query error but query is correct

前端 未结 2 860
孤独总比滥情好
孤独总比滥情好 2021-01-25 14:58

I have a MySQL Query which executes correctly in SequelPro but doesnt execute in PHP Mysqli. The message which is shown:

Execution stopped. Message: An

2条回答
  •  独厮守ぢ
    2021-01-25 15:30

    The error is pretty obvious.

    What you have here is not an SQL query, but a set of multiple queries.
    Whereas mysqli_query is intended to run only one query.

    Therefore you should make two calls,

    $this->connectionTargetDB->query("SET @csum := 0");
    return $this->connectionTargetDB->query($toBoExecuted);
    

提交回复
热议问题