本文整理匯總了PHP中XDB::rawFetchOneAssoc方法的典型用法代碼示例。如果您正苦於以下問題:PHP XDB::rawFetchOneAssoc方法的具體用法?PHP XDB::rawFetchOneAssoc怎麽用?PHP XDB::rawFetchOneAssoc使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XDB
的用法示例。
在下文中一共展示了XDB::rawFetchOneAssoc方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: handler_index
function handler_index($page)
{
if (Platal::globals()->merge->state == 'pending') {
$page->changeTpl('fusionax/index.tpl');
} elseif (Platal::globals()->merge->state == 'done') {
$issueList = array('name' => 'noms', 'job' => 'emplois', 'address' => 'adresses', 'promo' => 'promotions', 'deathdate' => 'dates de décès', 'phone' => 'téléphones', 'education' => 'formations');
$issues = XDB::rawFetchOneAssoc("SELECT COUNT(*) AS total,\n SUM(FIND_IN_SET('name', issues)) DIV 1 AS name,\n SUM(FIND_IN_SET('job', issues)) DIV 2 AS job,\n SUM(FIND_IN_SET('address', issues)) DIV 3 AS address,\n SUM(FIND_IN_SET('promo', issues)) DIV 4 AS promo,\n SUM(FIND_IN_SET('deathdate', issues)) DIV 5 AS deathdate,\n SUM(FIND_IN_SET('phone', issues)) DIV 6 AS phone,\n SUM(FIND_IN_SET('education', issues)) DIV 7 AS education\n FROM profile_merge_issues\n WHERE issues IS NOT NULL OR issues != ''");
$page->changeTpl('fusionax/issues.tpl');
$page->assign('issues', $issues);
$page->assign('issueList', $issueList);
}
}