gpt4 book ai didi

php - 如何编写whmcs内连接 'where condition'

转载 作者:行者123 更新时间:2023-11-29 13:11:16 28 4
gpt4 key购买 nike

whmcs内连接'where条件',

两个表都有相同的字段。

如何区分where条件下的表名?

尝试过这个,

$table = "tblclients";
$fields = "id,firstname,lastname,domain";
$where = array(
"lastname"=>array("sqltype"=>"LIKE","value"=>"Demo"),
"companyname"=>array("sqltype"=>"NEQ","value"=>""),
);
$sort = "id";
$sortorder = "ASC";
$limits = "0,5";
$join = "tblhosting ON tblhosting.userid=tblclients.id";
$result = select_query($table,$fields,$where,$sort,$sortorder,$limits,$join);

如何在where条件下指定表名?

最佳答案

$where = array(
"table1.lastname"=>array("sqltype"=>"LIKE","value"=>"Demo"),
"table2.companyname"=>array("sqltype"=>"NEQ","value"=>""),
);

关于php - 如何编写whmcs内连接 'where condition',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22058680/

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