Changeset 322 for trunk/client/modules/Elezioni/backup2.php
- Timestamp:
- Jun 6, 2019, 1:18:52 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/backup2.php
r321 r322 1 1 <?php 2 global $dbi,$id_cons_gen,$id_comune,$prefix; 2 global $dbi,$prefix; 3 $id_comune=intval($_GET['id_comune']); 4 $id_cons_gen=intval($_GET['id_cons_gen']); 3 5 $sql="select id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$id_comune'" ; 4 6 $res = $dbi->prepare("$sql"); … … 57 59 58 60 function scarica_array($sql,$tab){ 61 global $dbi; 59 62 $res_comune = $dbi->prepare("$sql"); 60 63 $res_comune->execute(); 61 64 echo "[$tab]\n"; 62 while ($lista = $ sql->fetch(PDO::FETCH_BOTH)) {65 while ($lista = $res_comune->fetch(PDO::FETCH_BOTH)) { 63 66 $x=0; 64 67 foreach ($lista as $key=>$val) {$riga[$key]=base64_encode($val);
Note:
See TracChangeset
for help on using the changeset viewer.