Changeset 322 for trunk/client/modules
- Timestamp:
- Jun 6, 2019, 1:18:52 AM (5 years ago)
- Location:
- trunk/client/modules/Elezioni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/backup.php
r265 r322 1 1 <?php 2 2 $param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST; 3 global $prefix,$dbi; 3 4 if (isset($param['id_cons_gen'])) 4 5 $id_cons_gen2=intval($param['id_cons_gen']); -
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.