vtiger 数据库操作

$linkto_id_query = "SELECT contactid FROM vtiger_contactdetails,vtiger_account 
where vtiger_contactdetails.accountid = vtiger_account.accountid 
and vtiger_account.accountid = ".$id;

$reselut = $adb->pquery($linkto_id_query,array());

if($reselut && $adb->num_rows($reselut)) {
	while($resultrow = $adb->fetch_array($reselut)) {
		$arr[]= $resultrow['contactid'];
	}
}

你可能感兴趣的:(vtiger 数据库操作)