quoteInto() 和 Zend_DB 生成错误

发布于 2024-12-13 05:56:05 字数 509 浏览 0 评论 0原文

我编写了一段代码来查看记录是否已在数据库中,代码如下:

$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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

短暂陪伴 2024-12-20 05:56:05

. 更改为 ,

$sql = $dbRead->quoteInto('SELECT email FROM betaEmail WHERE validate = ?', $_POST['validate']);

Change your . to a ,:

$sql = $dbRead->quoteInto('SELECT email FROM betaEmail WHERE validate = ?', $_POST['validate']);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文