Originally posted by Richi


ok, but i didn`t put any code which assigns value to sub_cat, coz it`s take from sub_cat1 !
hmm...huh? so if its taken from $sub_cat1, did you do something like

$sub_cat = $sub_cat1;

??????
else how is the script going to find which row has sub_cat equals $sub_cat when $sub_cat is empty???