摘要: public function getNewsList(){ $condition = []; $cond = []; if (!empty($_GET['title'])) { array_push($condition, ["title", "like", "%{$_GET['title']}% 阅读全文
posted @ 2021-07-29 20:03 青烟绕指柔 阅读(62) 评论(0) 推荐(0) 编辑
摘要: $page = $_GET['page'] ?? 1; $filename = 'list_' . $page . '.html'; ////判断有没有静态页面,有的话直接读取静态页面,没有的话,连接数据库,查询数据并且生成静态页面; if (file_exists($filename)) { ec 阅读全文
posted @ 2021-07-29 13:43 青烟绕指柔 阅读(44) 评论(0) 推荐(0) 编辑