Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何编写whmcs内部联接';其中条件为';_Php_Mysql_Whmcs - Fatal编程技术网

Php 如何编写whmcs内部联接';其中条件为';

Php 如何编写whmcs内部联接';其中条件为';,php,mysql,whmcs,Php,Mysql,Whmcs,whmcs内部联接“何处条件” 两个表具有相同的字段 在where条件下如何区分表名 $where = array( "table1.lastname"=>array("sqltype"=>"LIKE","value"=>"Demo"), "table2.companyname"=>array("sqltype"=>"NEQ","value"=>""), ); 试过这个, $table = "tblclients"; $fields = "id,

whmcs内部联接“何处条件”

两个表具有相同的字段

在where条件下如何区分表名

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

$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"=>""),
);