/
/
home
/
u523034047
/
domains
/
psassociate.org
/
public_html
/
admin
Server: in-mum-web1112.main-hosting.eu (62.72.28.111)
You: 216.73.216.52
PHP 8.3.16
Dir:
/home/u523034047/domains/psassociate.org/public_html/admin
Edit:
/home/u523034047/domains/psassociate.org/public_html/admin/EmpReport_Export.php
<?php include('conn.php'); $setSql = "SELECT * FROM employeer_reg order by id desc"; $setRec = mysqli_query($connection, $setSql); $columnHeader = ''; $setData = ''; while ($rec = mysqli_fetch_row($setRec)) { $rowData = ''; foreach ($rec as $value) { $value = '"' . $value . '"' . "\t"; $rowData .= $value; } $setData .= trim($rowData) . "\n"; } header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=Emp_Detail_Report.xls"); header("Pragma: no-cache"); header("Expires: 0"); echo ucwords($columnHeader) . "\n" . $setData . "\n"; ?>
Ukuran: 785 B