Changeset 122 for trunk/admin/modules/Elezioni/ele_cons_comuni.php
- Timestamp:
- Jun 9, 2011, 7:08:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/ele_cons_comuni.php
r53 r122 150 150 // copia circoscrizione 151 151 $res=mysql_query("select * from ".$prefix."_ele_circoscrizione where id_cons='$id_consulta'", $dbi); 152 while (list($id,$idcirc,$num,$des)=mysql_fetch_row($res)){ 152 while (list($id,$idcirc,$num,$des2)=mysql_fetch_row($res)){ 153 $des=addslashes($des2); 153 154 $resconnew=mysql_query("select count(0) from ".$prefix."_ele_circoscrizione where id_cons='$id_cons2' and num_circ='$num'", $dbi); 154 155 list($contr_circ)=mysql_fetch_row($resconnew); … … 160 161 // copia sede 161 162 $res1=mysql_query("select * from ".$prefix."_ele_sede where id_cons='$id_consulta' and id_circ='$idcirc'", $dbi); 162 while(list($id1,$idsede1,$idcirc1,$ind,$tel,$tel2,$fax,$resp,$mappa2,$filemappa)=mysql_fetch_row($res1)){ 163 while(list($id1,$idsede1,$idcirc1,$ind2,$tel,$tel2,$fax,$resp,$mappa2,$filemappa2)=mysql_fetch_row($res1)){ 164 $filemappa=addslashes($filemappa2); 163 165 $mappa=addslashes($mappa2); 166 $ind=addslashes($ind2); 164 167 $ressednew=mysql_query("select count(0) from ".$prefix."_ele_sede where id_cons='$id_cons2' and indirizzo='$ind'", $dbi); 165 168 list($contr_sed)=mysql_fetch_row($ressednew);
Note:
See TracChangeset
for help on using the changeset viewer.