Ignore:
Timestamp:
Apr 4, 2019, 11:16:00 PM (5 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_associazioni.php

    r257 r258  
    252252        echo "</td></tr></table></form>";
    253253        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>";
    255255        echo "<td width=\"20%\" bgcolor=\"$bgcolor1\"><b>"._DEFCOMUNE."</b></td>";
    256256        echo "<td width=\"10%\" bgcolor=\"$bgcolor1\"><b>"._PREFERENZE."</b></td>";
     
    325325        $delcons=0;
    326326        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'";
    328328                $rescomu = $dbi->prepare("$sql");
    329329                $rescomu->execute();   
     
    351351                        if ($idcomunenew>0) $newid=", id_comune = $idcomunenew ";
    352352                        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();     
    357356                        $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'";
    358357                        $result = $dbi->prepare("$sql");
Note: See TracChangeset for help on using the changeset viewer.