query($delquery); $pickArray = explode("\n",$fldPickList); $count = count($pickArray); $tabname=explode('cf_',$tableName); if($tabname[1]!='') $custom=true; for($i = 0; $i < $count; $i++) { $pickArray[$i] = trim($pickArray[$i]); if($pickArray[$i] != '') { if($custom) $query = "insert into ".$tableName." values('".$pickArray[$i]."')"; else $query = "insert into ".$tableName." values('','".$pickArray[$i]."',".$i.",1)"; $adb->query($query); } } header("Location:index.php?module=Settings&action=EditComboField&fld_module=".$fld_module."&fld_name=".$fldName."&table_name=".$tableName."&column_name=".$columnName); ?>