source: trunk/client/modules/Elezioni/backup.php@ 265

Last change on this file since 265 was 265, checked in by roby, 6 years ago
File size: 715 bytes
Line 
1<?php
2$param=strtolower($_SERVER['REQUEST_METHOD']) == 'get' ? $_GET : $_POST;
3if (isset($param['id_cons_gen']))
4 $id_cons_gen2=intval($param['id_cons_gen']);
5if (isset($param['id_comune']))
6 $id_comune2=intval($param['id_comune']);
7$sql="select descrizione from ".$prefix."_ele_consultazione where id_cons_gen='$id_cons_gen2'";
8 $result = $dbi->prepare("$sql");
9 $result->execute();
10
11list($nomeFile) = $result->fetch(PDO::FETCH_NUM);
12#$nomeFile="backup";
13header( 'Content-Type: application/octet-stream' );
14header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' );
15#header( 'Content-Length:'.strlen( $content ) );
16header( 'Content-Transfer-Encoding: binary' );
17include("backup2.php");
18exit(0);
19
20?>
Note: See TracBrowser for help on using the repository browser.