Ignore:
Timestamp:
Jun 6, 2019, 1:18:52 AM (5 years ago)
Author:
roby
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/backup2.php

    r321 r322  
    11<?php
    2 global $dbi,$id_cons_gen,$id_comune,$prefix;
     2global $dbi,$prefix;
     3$id_comune=intval($_GET['id_comune']);
     4$id_cons_gen=intval($_GET['id_cons_gen']);
    35$sql="select id_cons from ".$prefix."_ele_cons_comune where id_cons_gen='$id_cons_gen' and id_comune='$id_comune'" ;
    46        $res = $dbi->prepare("$sql");
     
    5759
    5860function scarica_array($sql,$tab){
     61        global $dbi;
    5962        $res_comune = $dbi->prepare("$sql");
    6063        $res_comune->execute();
    6164        echo "[$tab]\n";
    62         while ($lista = $sql->fetch(PDO::FETCH_BOTH)) {
     65        while ($lista = $res_comune->fetch(PDO::FETCH_BOTH)) {
    6366                $x=0;
    6467                foreach ($lista as $key=>$val) {$riga[$key]=base64_encode($val);
Note: See TracChangeset for help on using the changeset viewer.