PATH:
home
/
centosnipponia
/
public_html
/
voltyeu
/
voltynew
<?php // Database Connection $servername = "localhost"; $username = "rtjjjjmy_ordersd"; $password = "V.vEhDtCjyYcTnewTok99"; $dbname = "rtjjjjmy_repgt"; $conn = mysqli_connect($servername, $username, $password, $dbname); if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } if(isset($_GET['export'])){ if($_GET['export'] == 'true'){ $query = mysqli_query($conn, 'select * from `neo_import_to_ERP`'); // Get data from Database from demo table $delimiter = ","; $filename = "significant_" . date('Ymd') . ".csv"; // Create file name //create a file pointer $f = fopen('php://memory', 'w'); //set column headers $fields = array('ID', 'Country', 'State', 'City', 'Pin'); fputcsv($f, $fields, $delimiter); //output each row of the data, format line as csv and write to file pointer while($row = $query->fetch_assoc()){ $lineData = array($row['id'], $row['country'], $row['state'], $row['city'], $row['pin']); fputcsv($f, $lineData, $delimiter); } //move back to beginning of file fseek($f, 0); //set headers to download file rather than displayed header('Content-Type: text/csv'); header('Content-Disposition: attachment; filename="' . $filename . '";'); //output all remaining data on a file pointer fpassthru($f); } } ?>
[+]
..
[-] error_log
[edit]
[-] index2.php-old
[edit]
[-] setlang.php
[edit]
[-] contactusNL.php-notinuse
[edit]
[-] index2NL.phpold2
[edit]
[-] contactus.php-03082020
[edit]
[-] specs3.php
[edit]
[-] contactusNL.php1356
[edit]
[-] export.php
[edit]
[+]
assets
[-] specs3NL.php2
[edit]
[-] index2NL.php
[edit]
[-] specs3.php-old
[edit]
[+]
images
[-] specs3NL.php
[edit]
[-] contactus.php-notinuse
[edit]
[-] index2.php
[edit]
[-] contactus.php-old2
[edit]
[-] .htaccess.disabled
[edit]