for ( $i = 0; $i <10; $i++ ) $chkbox_arr[$i]; for ( $ii = 0; $ii <10; $ii++ ) $sql_arr[$ii] = ' AND '.$chkbox_arr[$i]."='y' ";

what I'm trying to do is create a new array which adds ' AND '.$chkbox_arr[$i]."='y' "; for each value in $chkbox_array. but all i get is:

AND ='y' AND ='y' AND ='y' AND ='y' AND ='y' AND ='y' AND ='y' AND ='y' AND ='y' AND ='y'

pleasecan someone show me how to fix this.

thanks in advance