tpshop在商城首页设置楼层时出错

[10501] PDOException in Connection.php line 404
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and enabled = 1 and start_time < 1496570400 and end_time > 1496570400 ) ORDER B' at line 1

// 调试结束
$this->debug(false);
// 返回结果集
return $this->getResult($pdo, $procedure);
} catch (\PDOException $e) {
if ($this->config['break_reconnect'] && $this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
echo '错误语句:'. $sql;
throw new PDOException($e, $this->config, $this->getLastsql());
}
}

/**
* 执行语句
* @access public
* @param string $sql sql指令
* @param array $bind 参数绑定
* @return int

第1个回答  2017-06-04
A plant may produce new flowers;

Warning: Invalid argument supplied for foreach() in /www/wwwroot/aolonic.com/skin/templets/default/contents.html on line 45
相似回答