本文整理匯總了PHP中DAL::get_count_dissorder_age_persons_by_unit方法的典型用法代碼示例。如果您正苦於以下問題:PHP DAL::get_count_dissorder_age_persons_by_unit方法的具體用法?PHP DAL::get_count_dissorder_age_persons_by_unit怎麽用?PHP DAL::get_count_dissorder_age_persons_by_unit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DAL
的用法示例。
在下文中一共展示了DAL::get_count_dissorder_age_persons_by_unit方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: query1
function query1($disorder)
{
echo "jaz sem funkcija";
$dal = new DAL();
$age_min = 18;
$age_max = 36;
$unitarray = array(75, 77, 78);
$disorderarray = array(1, 2, 3, 4, 5);
$cat = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, $disorder);
$cat = $cat[0];
$table = str_replace("##DISORDER{$disorder}##", $cat->sestevek, $table);
echo $table;
return $table;
}
示例2: array
$enota = $enota[0];
$table = str_replace("##UNIT##", $enota->name, $table);
$age_group1 = array(18, 25);
$age_group2 = array(26, 35);
$age_min = 18;
$age_max = 36;
$unitarray = array(75, 77, 78);
$disorderarray = array(1, 2, 3, 4, 5);
$unit_in = 78;
$enota = $dal->get_unit_by_persons_unit($unit_in);
$enota = $enota[0];
$table = str_replace("##UNIT##", $enota->name, $table);
$array1 = array(array($unit_in, 0, 11, $age_min, $age_max, 1));
echo "fdfsf";
$table .= $row;
$cat1 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 1);
// $cat1 = $dal->get_count_dissorder_age_persons_by_unit($array);
$cat1 = $cat1[0];
$table = str_replace("##DISORDER##", $cat1->sestevek, $table);
/*
$cat1 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 1);
$cat1=$cat1[0];
$table = str_replace("##DISORDER##", $cat1->sestevek, $table);
$cat2 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 2);
$cat2=$cat2[0];
$table = str_replace("##DISORDER2##", $cat2->sestevek, $table);
$cat3 = $dal->get_count_dissorder_age_persons_by_unit($unit_in, 0, 11, $age_min, $age_max, 3);
$cat3=$cat3[0];
$table = str_replace("##DISORDER3##", $cat3->sestevek, $table);