gpt4 book ai didi

php - jquery 数据表搜索不起作用,但其他一切都很好

转载 作者:行者123 更新时间:2023-12-01 02:56:35 26 4
gpt4 key购买 nike

服务器端数据表。除了搜索框之外,一切都工作正常。当我在搜索中输入一个字符时,就会出现此错误:

DataTables warning (table id = 'sample_1'): DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY093]: Invalid parameter number' in /home/test/public_html/assets/data-tables/test-pdo.php:99
Stack trace:
#0 /home/test/public_html/assets/data-tables/test-pdo.php(99): PDOStatement->execute()
#1 /home/test/public_html/assets/data-tables/test-pdo.php(143): TableData->get('accounts', 'account_id', Array)
#2 {main}
thrown in /home/test/public_html/assets/data-tables/test-pdo.php on line 99

第 99 行是绑定(bind)参数中的 -$statement->execute();

我正在对列出的数据表使用 pdo 脚本 here

最佳答案

这是一个 SQL 错误,而不是 Jquery...请检查您传递的参数..

关于php - jquery 数据表搜索不起作用,但其他一切都很好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20114812/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com