select("-6ren">
gpt4 book ai didi

php - 在 Php $db->select 上选择数据库

转载 作者:搜寻专家 更新时间:2023-10-30 21:40:28 25 4
gpt4 key购买 nike

28517 这是我的文件夹 ID。 我如何将 2 个或更多不同的文件夹 ID 放在那里?

$where_text = "`indir`= '28517'";

$data = $db->select("SELECT *
FROM `". MAI_PREFIX ."files`
WHERE $where_text
ORDER BY `".$set->plugins["top_sort"]."` ".$set->plugins["top_sort_type"]."
LIMIT 0,".$set->plugins["top_number"]);

最佳答案

IN()运算符(operator)可以帮助完成这项任务。

$where_text = "`indir` IN('28517','28518','28519')";

已编辑

在@RiggsFolly 发表评论后,我纠正了我的错误。谢谢@RiggsFolly

关于php - 在 Php $db->select 上选择数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49096178/

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