****: Lưu ý implode nằm ngoài vòng lặp , nếu không sẽ báo lỗi
**** ĐƯA VÀO DỮ LIỆU
.Step 1
$feature='';
if(isset($_POST['feature'])){
$feature = implode(",",$_POST['feature']);
}
.Step 2
while($row = $db->sql_fetchrow($rs)){
$bien_duavao_csdl[] = $row[ten_bien];
}
$feature = implode(",",$bien_duavao_csdl);
**** LẤY DỮ LIỆU RA
.Step 1
$fea = explode(",", $gia_tri);
if(in_array($row["gia_tri_can_tim"],$fea)){
return YES;
}
.Step 2
while($row = $db->sql_fetchrow($rs)){
$fea = explode(",", $gia_tri);
if(in_array($row["gia_tri_can_tim"],$fea)){
return YES;
}
}