Changeset 258 for trunk/admin/modules/Elezioni/ele_associazioni.php
- Timestamp:
- Apr 4, 2019, 11:16:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_associazioni.php
r257 r258 252 252 echo "</td></tr></table></form>"; 253 253 echo "<hr><br><table width=\"100%\" border=\"3\">"; 254 echo "<tr align=\"center\"><td width=\"15%\" bgcolor=\"$bgcolor1\"><b>"._CONSULTA." TEST:$id_cons_comu</b></td>";254 echo "<tr align=\"center\"><td width=\"15%\" bgcolor=\"$bgcolor1\"><b>"._CONSULTA."</b></td>"; 255 255 echo "<td width=\"20%\" bgcolor=\"$bgcolor1\"><b>"._DEFCOMUNE."</b></td>"; 256 256 echo "<td width=\"10%\" bgcolor=\"$bgcolor1\"><b>"._PREFERENZE."</b></td>"; … … 325 325 $delcons=0; 326 326 if ($do !="" and $id_cons_gen>0 and $idcomunenew>0) { 327 $sql="SELECT id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$idcomunenew'"; 327 $sql="SELECT id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$idcomunenew'"; 328 328 $rescomu = $dbi->prepare("$sql"); 329 329 $rescomu->execute(); … … 351 351 if ($idcomunenew>0) $newid=", id_comune = $idcomunenew "; 352 352 else $newid=''; 353 $result = mysql_query("update ".$prefix."_ele_comu_collegi set id_collegio= '$id_collegio' $newid where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'", $dbi) || die(mysql_error()); 354 $result = $dbi->prepare("$sql"); 355 $result->execute(); 356 if (!$result->rowCount()) return; 353 $sql="update ".$prefix."_ele_comu_collegi set id_collegio= '$id_collegio' $newid where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'"; 354 $result = $dbi->prepare("$sql"); 355 $result->execute(); 357 356 $sql="update ".$prefix."_ele_cons_comune set id_conf='$id_conf', chiusa= '$chiusa', preferenze='$preferenze',id_fascia='$idfascia',vismf='$vismf',solo_gruppo='$sg',disgiunto='$disgiunto' where id_comune='$id_comune' and id_cons_gen='$id_cons_gen'"; 358 357 $result = $dbi->prepare("$sql");
Note:
See TracChangeset
for help on using the changeset viewer.