Changeset 328 for trunk/admin/modules/Elezioni/salva_ref.php
- Timestamp:
- Feb 16, 2020, 11:20:46 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/salva_ref.php
r327 r328 56 56 $res = $dbi->prepare("$sql"); 57 57 $res->execute(); 58 $sql="delete from ".$prefix."_ele_controlli where id_cons='$id_cons' and id_sez=$id_sez"; 59 $res = $dbi->prepare("$sql"); 60 $res->execute(); 58 61 }else{ 59 62 while(list($i,$idgruppo)=$resultg->fetch(PDO::FETCH_BOTH)) { … … 74 77 $res = $dbi->prepare("$sql"); 75 78 $res->execute(); 76 }else {79 }elseif($val[$i]!=''){ 77 80 $sql="insert into ".$prefix."_ele_voti_ref values('$id_cons','$idgruppo','$id_sez','$i','".$si[$i]."','".$no[$i]."','".$val[$i]."','".$nul[$i]."','".$bia[$i]."','".$con[$i]."')"; 78 81 $res = $dbi->prepare("$sql"); … … 81 84 } 82 85 } 83 } 86 include("ele_controlli.php"); 87 controllo_votir($id_cons,$id_sez); 88 } 84 89 85 90 86 include("ele_controlli.php"); 87 controllo_votir($id_cons,$id_sez); 91 88 92 include("ele_colora_sez.php"); 89 93 if ($fileout) fclose($fp);
Note:
See TracChangeset
for help on using the changeset viewer.