-
-
include '../../inc/auth.php';
- include '../public/base.php';
- include '../public/boonlist.php';
- //以上是pdo连接数据库的代码,大家自行完成。
- header('cache-control: no-cache, must-revalidate');
- header('content-type: application/vnd.ms-excel');
- header('content-disposition: filename=leavemessage.xls');
- ?>
-
-
-
| 留言id |
-
| userid |
-
| 用户名 |
-
| 留言内容 |
-
| 日期 |
-
-
if (isset($_get['trio']) && $_get['trio']=='trio_message') {
- $sql = "select * from trio_message";
- $order_list = $db->getall($sql);
for($i=0;$i echo '';- echo'
| '.$order_list[$i]["id"].' | ';
- echo'
| '.$order_list[$i]["userid"].' | ';
- echo'
| '.$order_list[$i]["user_name"].' | ';
- echo'
| '.$order_list[$i]["content"].' | ';
- echo'
| '.$order_list[$i]["fdate"].' | ';
- echo '
';- }
- }
- ?>
-
-
-
复制代码
|
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn