// 参数绑定
$this->bindValue($bind);
// 执行查询
$result = $this->PDOStatement->execute();
// 调试结束
$this->debug(false);
$procedure = in_array(strtolower(substr(trim($sql), 0, 4)), ['call', 'exec']);
return $this->getResult($class, $procedure);
} catch (\PDOException $e) {
throw new PDOException($e, $this->config, $this->queryStr);
}
}
/**
* 执行语句
* @access public
* @param string $sql sql指令
* @param array $bind 参数绑定
* @return int
SQLSTATE | 42000 |
Driver Error Code | 1064 |
Driver Error Message | 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 ') ORDER BY id desc LIMIT 1' at line 1 |
Error Code | 10501 |
Error Message | 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 ') ORDER BY id desc LIMIT 1' at line 1 |
Error SQL | SELECT `id`,`title` FROM `yl_article` WHERE ( id < 315 and ischecked=1 and isdelete=0 and cid= ) ORDER BY id desc LIMIT 1 |
type | mysql |
hostname | localhost |
database | esp12366_com |
username | esp12366_com |
password | mTeCsPdpsGnhmtwh |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | yl_ |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
fields_strict | true |
resultset_type | array |
auto_timestamp | false |
sql_explain | false |
builder |
USER | www |
HOME | /home/www |
HTTP_REFERER | http://www.esp12366.com/detail/315.html |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.esp12366.com |
PATH_INFO | /detail/315.html |
REDIRECT_STATUS | 200 |
SERVER_NAME | esp12366.com |
SERVER_PORT | 443 |
SERVER_ADDR | 148.135.30.189 |
REMOTE_PORT | 51766 |
REMOTE_ADDR | 3.236.226.100 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /www/wwwroot/esp12366.com/public_html |
DOCUMENT_URI | /index.php |
REQUEST_URI | /detail/315.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/detail/315.html |
SCRIPT_FILENAME | /www/wwwroot/esp12366.com/public_html/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711711783.0434 |
REQUEST_TIME | 1711711783 |
APP_PATH | /www/wwwroot/esp12366.com/public_html/../application/ |
THINK_VERSION | 5.0.0 |
THINK_START_TIME | 1711711783.0468 |
THINK_START_MEM | 367312 |
EXT | .php |
DS | / |
THINK_PATH | /www/wwwroot/esp12366.com/thinkphp/ |
LIB_PATH | /www/wwwroot/esp12366.com/thinkphp/library/ |
CORE_PATH | /www/wwwroot/esp12366.com/thinkphp/library/think/ |
TRAIT_PATH | /www/wwwroot/esp12366.com/thinkphp/library/traits/ |
ROOT_PATH | /www/wwwroot/esp12366.com/public_html/../ |
EXTEND_PATH | /www/wwwroot/esp12366.com/public_html/../extend/ |
VENDOR_PATH | /www/wwwroot/esp12366.com/public_html/../vendor/ |
RUNTIME_PATH | /www/wwwroot/esp12366.com/public_html/../runtime/ |
LOG_PATH | /www/wwwroot/esp12366.com/public_html/../runtime/log/ |
CACHE_PATH | /www/wwwroot/esp12366.com/public_html/../runtime/cache/ |
TEMP_PATH | /www/wwwroot/esp12366.com/public_html/../runtime/temp/ |
CONF_PATH | /www/wwwroot/esp12366.com/public_html/../application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |