Changeset 322
- Timestamp:
- Jun 6, 2019, 1:18:52 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules.php
r283 r322 165 165 $sql = $dbi->prepare("SELECT id_cons,id_conf FROM ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_bak' and id_comune='$id_combak'"); 166 166 $sql->execute(); 167 $row = $sql->fetchAll(PDO::FETCH_ASSOC); 168 $id_cons=$row[1];$hondt=$row[2]; 167 list($id_cons,$hondt) = $sql->fetch(PDO::FETCH_NUM); 169 168 170 169 // incluso in consiglieri.php, ma io carico le vecchie variabili per compatibilit'a all'indietro -
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.