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 ' '; } } ?> 复制代码