$c = 0;
    // echo "male selected brands are : <br>";
    add_brfnotexist(get_oldb_slcted(), get_brand_names(brands_men_list(), $selected_brand));
    // echo "<br><br><br>";
    del_brfunchecked(brands_men_list(), $selected_brand);
    // if ( strlen($selected_brand) > 0 ) {
    // 	$brandname=get_brand_names(brands_men_list(),$selected_brand);
    // 	for ($i=0; $i < count($brandname) ; $i++) {
    // 		$c+=1;
    // 		echo " $c .)".$brandname[$i]."<br>";
    // 	}
    // }
} else {
    $c = 0;
    // echo "female selected brands are : <br>";
    add_brfnotexist(get_oldb_slcted(), get_brand_names(brands_women_list(), $selected_brand));
    // echo "<hr>";
    del_brfunchecked(brands_women_list(), $selected_brand);
    // if ( strlen($selected_brand) > 0 ) {
    // 	$brandname=get_brand_names(brands_women_list(),$selected_brand);
    // 	for ($i=0; $i < count($brandname) ; $i++) {
    // 		 $c+=1;
    // 		 echo " $c .)".$brandname[$i]."<br>";
    // 	}
    // }
}
?>

<?php 
// echo "hello there!";
$mybrand_indb = select('fs_member_brand_selected', 4, array('mno', $_SESSION['mno']));
Example #2
0
function checked_or_uncheked($b_index)
{
    $cheked = false;
    $get_oldb_slcted = get_oldb_slcted();
    if (!empty($get_oldb_slcted)) {
        for ($i = 0; $i < count($get_oldb_slcted); $i++) {
            if (is_equal($get_oldb_slcted[$i][2], $b_index)) {
                $cheked = true;
                $i = count($get_oldb_slcted);
            }
        }
    }
    if ($cheked) {
        return true;
    } else {
        return false;
    }
}