gpt4 book ai didi

php - 使用 WEHERE 的 SQL 语法错误

转载 作者:太空宇宙 更新时间:2023-11-03 11:06:51 25 4
gpt4 key购买 nike

<分区>

$query = sprintf("SELECT * FROM sorular WEHERE test_id='%s' ORDER BY id LIMIT '%s', '%s'",
mysql_real_escape_string(htmlentities(stripslashes($testid))),
mysql_real_escape_string(htmlentities(stripslashes($start))),
mysql_real_escape_string(htmlentities(stripslashes($perpage))));

我收到错误:

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 'test_id='1' ORDER BY id LIMIT '4', '2'' at line 1

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