quoteInto() 和 Zend_DB 生成错误
我编写了一段代码来查看记录是否已在数据库中,代码如下:
$sql = $dbRead->quoteInto('SELECT email FROM betaEmail WHERE validate = ?'.$_POST['validate']);
对于连接,我使用 Zend_Db_Adapter_Pdo_Mysql 。出现以下错误,我该怎么办?有什么解决办法吗?
Warning: Missing argument 2 for Zend_Db_Adapter_Abstract::quoteInto(), called in
/Applications/MAMP/htdocs/myform/user_registration.php on line 16 and defined in
/Users/payam/php_library/ZendFramework-1.11.8/library/Zend/Db/Adapter/Abstract.php
on line 927
I have written a piece of code to see if the record is already in the db, the code is like this :
$sql = $dbRead->quoteInto('SELECT email FROM betaEmail WHERE validate = ?'.$_POST['validate']);
and for connection, I am using Zend_Db_Adapter_Pdo_Mysql . The following error is generated, what should I make out of it? Any solution?
Warning: Missing argument 2 for Zend_Db_Adapter_Abstract::quoteInto(), called in
/Applications/MAMP/htdocs/myform/user_registration.php on line 16 and defined in
/Users/payam/php_library/ZendFramework-1.11.8/library/Zend/Db/Adapter/Abstract.php
on line 927
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
.
更改为,
:Change your
.
to a,
: