fix analysis
This commit is contained in:
parent
5dc6ab4875
commit
58736b44f5
@ -105,10 +105,15 @@ if(isset($_FILES['f_csv'])) {
|
||||
$arr_analysis_refdata = new WA_MySQLi_RS("rsl", $repnew, 0);
|
||||
$trim_item = str_replace("\n", "", str_replace("'", "\'", $item['word']));
|
||||
$groupcodeTrimmed = str_replace("\n", "", str_replace("'", "\'", $item['groupcode']));
|
||||
if($groupcodeTrimmed == "" || $groupcodeTrimmed == "-" || $groupcodeTrimmed == " "){
|
||||
$quantity = 0;
|
||||
}else{
|
||||
$arr_analysis_refdata->setQuery("SELECT * FROM analysisvocabulary where analysiscode like '$groupcodeTrimmed'");
|
||||
$arr_analysis_refdata->execute();
|
||||
$arr_analysis_ref = $arr_analysis_refdata->Results;
|
||||
if(count($arr_analysis_ref) == 0){
|
||||
$quantity = count($arr_analysis_ref);
|
||||
}
|
||||
if($quantity == 0){
|
||||
$arr_analysis_refdata = new WA_MySQLi_RS("rsl", $repnew, 0);
|
||||
$arr_analysis_refdata->setQuery("SELECT * FROM analysisvocabulary where nameanalysisvoc like '$trim_item'");
|
||||
$arr_analysis_refdata->execute();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user