$choices = !empty($rdata['Currency_Codes']) ? explode(',',$rdata['Currency_Codes']) : $choices = sc_query('SELECT `Code` FROM `Currency_Codes` ORDER BY `Code` ASC', MYSQL_ASSOC,0,0,'',1);

foreach($choices as $choice) $options[$choice] = $choice;