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

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