', 0); $cl = array(); $cl_result = sql_query("select * from {$g5['closthes_table']} where ch_id = '{$ch_id}' order by cl_type desc, cl_id asc"); $str_array_data = ""; $array_data = ""; for($i=0; $row=sql_fetch_array($cl_result); $i++) { $cl[$i] = $row; $array_data .= "{$str_array_data}'{$row['cl_subject']}'"; $str_array_data = ","; } ?>