本文整理匯總了PHP中PearDatabase::fetchByAssoc方法的典型用法代碼示例。如果您正苦於以下問題:PHP PearDatabase::fetchByAssoc方法的具體用法?PHP PearDatabase::fetchByAssoc怎麽用?PHP PearDatabase::fetchByAssoc使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PearDatabase
的用法示例。
在下文中一共展示了PearDatabase::fetchByAssoc方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
function fill_in_additional_detail_fields()
{
$query = "SELECT u1.first_name, u1.last_name from vtiger_users u1, vtiger_users u2 where u1.id = u2.reports_to_id AND u2.id = ? and u1.deleted=0";
$result = $this->db->pquery($query, array($this->id), true, "Error filling in additional detail vtiger_fields");
$row = $this->db->fetchByAssoc($result);
$this->log->debug("additional detail query results: {$row}");
if ($row != null) {
$this->reports_to_name = stripslashes(getFullNameFromArray('Users', $row));
} else {
$this->reports_to_name = '';
}
}