Changeset 257 for trunk/admin/modules/Elezioni/restore.php
- Timestamp:
- Feb 9, 2019, 8:45:24 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/modules/Elezioni/restore.php
r31 r257 95 95 if ($y==0) {$idcns=$valori;$y++; 96 96 foreach($tabs as $tbs){ 97 $res_del = mysql_query("delete from $tbs where id_cons=$idcns" ,$dbi); 97 $sql="delete from $tbs where id_cons=$idcns"; 98 $res_del = $dbi->prepare("$sql"); 99 $res_del->execute(); 98 100 } 99 101 } 100 if(!$res_del ) die ("delete $tbs where id_cons=$idcns--- errore di cancellazione").mysql_error();102 if(!$res_del->rowCount()) die ("delete $tbs where id_cons=$idcns--- errore di cancellazione"); 101 103 }else $valori.= ",'".addslashes(base64_decode($val))."'"; 102 $res_comune = mysql_query("insert into $tab values($valori)" ,$dbi); 104 $sql="insert into $tab values($valori)"; 105 $res_comune = $dbi->prepare("$sql"); 106 $res_comune->execute(); 103 107 $currentLine++; 104 108 }
Note:
See TracChangeset
for help on using the changeset viewer.