Changeset 258 for trunk/admin/modules/Elezioni/ele_cons_comuni.php
- Timestamp:
- Apr 4, 2019, 11:16:00 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_cons_comuni.php
r257 r258 161 161 if ($id_cons2) { 162 162 // copia circoscrizione 163 $ res=mysql_query("select * from ".$prefix."_ele_circoscrizione where id_cons='$id_consulta'", $dbi);163 $sql="select * from ".$prefix."_ele_circoscrizione where id_cons='$id_consulta'"; 164 164 $res = $dbi->prepare("$sql"); 165 $res->execute(); 165 $res->execute(); 166 166 while (list($id,$idcirc,$num,$des2)=$res->fetch(PDO::FETCH_NUM)){ 167 167 $des=addslashes($des2); … … 188 188 $ind=addslashes($ind2); 189 189 $sql="select count(0) from ".$prefix."_ele_sede where id_cons='$id_cons2' and indirizzo='$ind'"; 190 $ress wdnew = $dbi->prepare("$sql");190 $ressednew = $dbi->prepare("$sql"); 191 191 $ressednew->execute(); 192 192 list($contr_sed)=$ressednew->fetch(PDO::FETCH_NUM);
Note:
See TracChangeset
for help on using the changeset viewer.