Php 如何编写whmcs内部联接';其中条件为';
whmcs内部联接“何处条件” 两个表具有相同的字段 在where条件下如何区分表名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,
$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"=>""),
);