LISTBOX 加上離職人員進去

CodeCharge Studio 2.x, 3.x, 4.x, 5.x
回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

LISTBOX 加上離職人員進去

文章 yehlu »

$array = $student1->tech_user->Values;
$key1 = $student1->tech_user->GetValue();
$find = 0;
foreach($array as $key => $value){
if($value[0]==$key1){
$find = 1;
}
}
if($find==0){
global $db;
$query = "select * from users where users_id = '$key1' ";
$db->query($query);
$db->next_Record();
$data = $db->f('name');
//echo $key1.$data;
array_push($student1->tech_user->Values,array($key1,$data));
//print_r($student1->tech_user->Values);
//$student1->tech_user->setValue($key1);
}
回覆文章

回到「CodeCharge Studio」