pdo预处理limit出现错误
我的sql如下
select * from table limit ?,?
然后传值
$stmt = $this->_connection->prepare($_sql); $stmt->execute($_val);结果出现这个错误
Fatal error: Uncaught exception 'PDOException' with 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 ''0','12'' at line 1请问怎么解决?
网友回复