php 不识别 函数,奇怪的PHP错误:函数无法识别自己的参数
我有以下功能:
public function updateCustomerInternetBanking($value, $column_to_go_by)
{
$sql = "
UPDATE customer c
JOIN account_import ai ON c.account_import_id = ai.id
JOIN generic_import gi ON ai.generic_import_id = gi.id
JOIN import_bundle ib ON gi.import_bundle_id = ib.id
SET has_internet_banking = 1
WHERE c.".$column_to_go_by." = ".$this->quote($value)."
AND ib.id = ".$this->quote($this->getId())."
";
$conn = Doctrine_Manager::connection();
$conn->execute($sql);
}當我嘗試在開發中運行它時,它工作正常。當我嘗試在生產環境中運行它時,我得到以下結果:
PHP Notice: Undefined variable: column_to_go_by in /var/www/mcif/lib/model/doctrine/ImportBundle.class.php on line 655$column_to_go_by如何定義?
正如你所知,這段代碼是直接從生產中復制的,我檢查了WHERE ...行是655行。
總結
以上是生活随笔為你收集整理的php 不识别 函数,奇怪的PHP错误:函数无法识别自己的参数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php报表服务器配置,服务器_SQL S
- 下一篇: php数组逗号连接,php – 如何使