Changeset 358 for trunk/admin/modules/Elezioni/ele_controlli.php
- Timestamp:
- Feb 22, 2022, 10:40:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_controlli.php
r338 r358 388 388 389 389 if($err){ 390 if(!$id_lista) $id_lista=0; //$controllo; 391 $sql="insert into ".$prefix."_ele_controlli value('$id_cons','$id_sez','$tipo','$id_lista')"; 392 $res = $dbi->prepare("$sql"); 393 $res->execute(); 390 $sql="select * from ".$prefix."_ele_controlli where tipo='lista' and id_sez='$id_sez' "; 391 $res = $dbi->prepare("$sql"); 392 $res->execute(); 393 if(!$res->rowCount()) { 394 if(!$id_lista) $id_lista=0; //$controllo; 395 $sql="insert into ".$prefix."_ele_controlli value('$id_cons','$id_sez','$tipo','$id_lista')"; 396 $res = $dbi->prepare("$sql"); 397 $res->execute(); 398 } 394 399 } 395 400
Note:
See TracChangeset
for help on using the changeset viewer.