博客列表 >第十期PHP仿蜂鸟网数据库数据渲染页面(2020-01-17)

第十期PHP仿蜂鸟网数据库数据渲染页面(2020-01-17)

齐齐
齐齐原创
2020年02月07日 23:19:00657浏览

新建数据库,建数据表

新闻资讯

图片专区


二手交易

合作单位

公共部分

连接数据库

  1. namespace pdo;
  2. use PDO;
  3. //1.连接数据库
  4. //数据源
  5. $dsb="mysql:host=localhost;dbname=phpedu;";
  6. //用户名
  7. $name="root";
  8. //密码
  9. $pwd="root";
  10. //实例化pdo类
  11. $pdo=new PDO($dsb,$name,$pwd);
  12. //2.操作数据库
  13. //准备sql语句
  14. //3.关闭数据库

头部文件(路径:public/)

  1. // 载入连接数据库文件
  2. <?php include "pdo.php" ?>
  3. <nav class="public-header">
  4. <a href="">网站首页</a>
  5. <a href="">专题</a>
  6. <a href="">网站导航</a>
  7. <a href="">二手商品</a>
  8. <a href="">讨论区</a>
  9. <span>
  10. <a href=""><i class="iconfont icon-huiyuan2"></i>登陆</a>
  11. <a href="">免费注册</a>
  12. </span>
  13. </nav>

底部文件

  1. <footer class="public-footer">
  2. <div>
  3. <a href="">简介</a>
  4. <a href="">联系我们</a>
  5. <a href="">招聘信息</a>
  6. <a href="">友情链接</a>
  7. <a href="">用户服务协议</a>
  8. <a href="">隐私权声明</a>
  9. <a href="">法律投诉声明</a>
  10. </div>
  11. <div><span>LOGO</span></div>
  12. <div>
  13. <p>2019 fengniao.com. All rights reserved . 安徽闹着玩有限公司(无聊网)版权所有</p>
  14. <p>皖ICP证150110号 京ICP备14323013号-2 皖公网安备110108024357788号</p>
  15. <p>违法和不良信息举报电话: 0551-1234567 举报邮箱: admin@baidu.com</p>
  16. </div>
  17. <div>
  18. <p>关注公众号</p>
  19. <img src="static/images/erwei-code.png" alt="">
  20. </div>
  21. </footer>

公共推荐图文列表

  1. <div class="article-public-recommend">
  2. <h3>推荐阅读</h3>
  3. <div class="img-list">
  4. <?php
  5. $img="select * from `edu_img` limit 8";
  6. $stmt=$pdo->prepare($img);
  7. $stmt->execute();
  8. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  9. foreach ($dates as $date):?>
  10. <div>
  11. <a href="iview.php?id=<?php echo $date['id']?>"><img src="<?php echo $date['litpic']?>" alt=""></a>
  12. <a href="iview.php?id=<?php echo $date['id']?>"><?php echo $date['title']?></a>
  13. </div>
  14. <?php endforeach;?>
  15. </div>
  16. </div>

网站首页

php代码

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <!-- 当前文档要用到阿里字体图标-->
  6. <link rel="stylesheet" href="static/font/iconfont.css">
  7. <link rel="stylesheet" href="index.css">
  8. <title>全站首页</title>
  9. </head>
  10. <body>
  11. <!--公共页眉-->
  12. <?php include __DIR__ ."/public/head.php"?>
  13. <!--主体全部放在main元素中-->
  14. <main>
  15. <!-- 首页头部导航与轮播-->
  16. <div class="index-header">
  17. <div class="content">
  18. <!--logo与搜索框,快速入口-->
  19. <div class="log-search">
  20. <a href="" class="logo"><img src="static/images/logo.png" alt=""></a>
  21. <div class="search">
  22. <input type="search" name="search" id="search">
  23. <label for="search" class="iconfont icon-jinduchaxun"></label>
  24. </div>
  25. <div class="quick-entry">
  26. <a href="" class="iconfont icon-huiyuan1"></a>
  27. <a href="" class="iconfont icon-danmu1"></a>
  28. <a href="" class="iconfont icon-fabu"></a>
  29. <a href="" class="iconfont icon-fangda"></a>
  30. <a href="" class="iconfont icon-huiyuan2"></a>
  31. <a href="" class="iconfont icon-dianzan"></a>
  32. </div>
  33. </div>
  34. <!--主导航-->
  35. <div class="main-nav">
  36. <!--导航详情1-->
  37. <div class="nav-detail">
  38. <!--左侧图标与描述-->
  39. <div class="pic">
  40. <span class="iconfont icon-gongdan"></span>
  41. <div>
  42. <span>资讯</span>
  43. <span>学习</span>
  44. </div>
  45. </div>
  46. <!--右侧导航链接-->
  47. <div class="links">
  48. <a href="">器材</a>
  49. <a href="">大师</a>
  50. <a href="">学院</a>
  51. <a href="">实战</a>
  52. <a href="">大赛</a>
  53. <a href="">裤子</a>
  54. <a href="">影视</a>
  55. <a href="">其它</a>
  56. </div>
  57. </div>
  58. <!--导航详情2-->
  59. <div class="nav-detail">
  60. <!--左侧图标与描述-->
  61. <div class="pic">
  62. <span class="iconfont icon-renwujincheng"></span>
  63. <div>
  64. <span>爱好</span>
  65. <span>姐妹</span>
  66. </div>
  67. </div>
  68. <!--右侧导航链接-->
  69. <div class="links">
  70. <a href="">有品</a>
  71. <a href="">图片</a>
  72. <a href="">喝水</a>
  73. <a href="">飞机</a>
  74. <a href="">坦克</a>
  75. <a href="">气球</a>
  76. <a href="">毛线</a>
  77. <a href="">其它</a>
  78. </div>
  79. </div>
  80. <!--导航详情3-->
  81. <div class="nav-detail">
  82. <!--左侧图标与描述-->
  83. <div class="pic">
  84. <span class="iconfont icon-gongdan"></span>
  85. <div>
  86. <span>软件</span>
  87. <span>技能</span>
  88. </div>
  89. </div>
  90. <!--右侧导航链接-->
  91. <div class="links">
  92. <a href="">学习</a>
  93. <a href="">爱国</a>
  94. <a href="">敬业</a>
  95. <a href="">友善</a>
  96. <a href="">富强</a>
  97. <a href="">互助</a>
  98. <a href="">仁义</a>
  99. <a href="">其它</a>
  100. </div>
  101. </div>
  102. <!--导航详情4-->
  103. <div class="nav-detail">
  104. <!--左侧图标与描述-->
  105. <div class="pic">
  106. <span class="iconfont icon-DOC"></span>
  107. <div>
  108. <span>编程</span>
  109. <span>美女</span>
  110. </div>
  111. </div>
  112. <!--右侧导航链接-->
  113. <div class="links">
  114. <a href="">吃饭</a>
  115. <a href="">周易</a>
  116. <a href="">黄山</a>
  117. <a href="">合肥</a>
  118. <a href="">上海</a>
  119. <a href="">杭州</a>
  120. <a href="">北京</a>
  121. <a href="">其它</a>
  122. </div>
  123. </div>
  124. </div>
  125. <!--轮播图-->
  126. <div class="slider">
  127. <a href=""><img src="static/images/2.jpg" alt=""></a>
  128. <a href=""><img src="static/images/banner-right.jpg" alt=""></a>
  129. </div>
  130. </div>
  131. </div>
  132. <!-- 新闻资讯-->
  133. <!--引入大标题组件-->
  134. <div class="public-headline">
  135. <span>新闻资讯</span>
  136. </div>
  137. <div class="index-news">
  138. <!-- 左侧图片列表-->
  139. <div class="imgs">
  140. <?php
  141. $img="select * from `edu_new` limit 1";
  142. $stmt=$pdo->prepare($img);
  143. $stmt->execute();
  144. $date=$stmt->fetch(PDO::FETCH_ASSOC);
  145. echo '<a href="view.php?id='.$date["id"].'"><img src="'.$date["litpic"].'" alt="" class="first-img"></a>'
  146. ?>
  147. <?php
  148. $img="select * from `edu_new` limit 1,2";
  149. $stmt=$pdo->prepare($img);
  150. $stmt->execute();
  151. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  152. foreach ($dates as $date):?>
  153. <div><a href="view.php?id=<?php echo $date['id']?>"><img src="<?php echo $date['litpic']?>" alt=""></a>
  154. <a href=""><?php echo $date['title']?></a>
  155. </div>
  156. <?php endforeach;?>
  157. </div>
  158. <!-- 中间与右边信息列表共用样式-->
  159. <div class="list">
  160. <?php
  161. $img="select * from `edu_new` limit 1";
  162. $stmt=$pdo->prepare($img);
  163. $stmt->execute();
  164. $date=$stmt->fetch(PDO::FETCH_ASSOC);
  165. echo '<a href="view.php?id='.$date["id"].'">'.$date["title"].'</a>'
  166. ?>
  167. <ul>
  168. <?php
  169. $img="select * from `edu_new` limit 1,9";
  170. $stmt=$pdo->prepare($img);
  171. $stmt->execute();
  172. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  173. foreach ($dates as $date):?>
  174. <li><span>[新闻]</span><a href="view.php?id=<?php echo $date['id']?>"><?php echo $date['title']?></a></li>
  175. <?php endforeach;?>
  176. </ul>
  177. </div>
  178. <div class="list">
  179. <?php
  180. $img="select * from `edu_new` limit 3,1";
  181. $stmt=$pdo->prepare($img);
  182. $stmt->execute();
  183. $date=$stmt->fetch(PDO::FETCH_ASSOC);
  184. echo '<a href="view.php?id='.$date["id"].'">'.$date["title"].'</a>'
  185. ?>
  186. <ul>
  187. <?php
  188. $img="select * from `edu_new` limit 3,9";
  189. $stmt=$pdo->prepare($img);
  190. $stmt->execute();
  191. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  192. foreach ($dates as $date):?>
  193. <li><span>[促销]</span><a href="view.php?id=<?php echo $date['id']?>"><?php echo $date['title']?></a></li>
  194. <?php endforeach;?>
  195. </ul>
  196. </div>
  197. </div>
  198. <!--引入大标题组件-->
  199. <div class="public-headline">
  200. <span>图片专区</span>
  201. </div>
  202. <!-- 图文列表专区-->
  203. <div class="public-image-list">
  204. <?php
  205. $img="select * from ` edu_img_typeid`";
  206. $stmt=$pdo->prepare($img);
  207. $stmt->execute();
  208. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  209. $img1="select * from `edu_img`";
  210. $stmt1=$pdo->prepare($img1);
  211. $stmt1->execute();
  212. $dates1=$stmt1->fetchAll(PDO::FETCH_ASSOC);
  213. foreach ($dates as $date):?>
  214. <div class="list">
  215. <div class="title">
  216. <a href="<?php echo $date['url']?>"><?php echo $date['typename']?></a>
  217. <span>纵观摄影艺术</span>
  218. </div>
  219. <div class="img-list">
  220. <?foreach ($dates1 as $date1):?>
  221. <?php if($date['id']===$date1['typeid']):?>
  222. <div>
  223. <a href="iview.php?id=<?php echo $date1['id']?>"><img src="<?php echo $date1['litpic']?>" alt=""></a>
  224. <a href="iview.php?id=<?php echo $date1['id']?>"><?php echo $date1['title']?></a>
  225. </div>
  226. <?php endif;?>
  227. <?php endforeach;?>
  228. </div>
  229. </div>
  230. <?php endforeach;?>
  231. </div>
  232. <!-- 二手交易专区-->
  233. <!--引入大标题组件-->
  234. <div class="public-headline">
  235. <span>二手交易</span>
  236. </div>
  237. <!--二手交易专区-->
  238. <div class="public-second-hand">
  239. <!-- 标题1-->
  240. <div class="title1">
  241. <a href="">抢好货</a>
  242. <span>0低价, 便捷,安全,快速</span>
  243. </div>
  244. <!-- 标题2-->
  245. <div class="title2">
  246. <span>热门分类</span>
  247. <a href="">美女写真</a>
  248. <a href="">日本美女</a>
  249. <a href="">美国美女</a>
  250. <a href="">国内美女</a>
  251. <a href="">AV美女</a>
  252. </div>
  253. <!--商品展示区-->
  254. <div class="goods">
  255. <!--左侧商品列表-->
  256. <div class="goods-list">
  257. <!-- 商品简介-->
  258. <?php
  259. $img="select * from `edu_shop` limit 8";
  260. $stmt=$pdo->prepare($img);
  261. $stmt->execute();
  262. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  263. foreach ($dates as $date):?>
  264. <div class="intro">
  265. <a href="shop.php?id=<?php echo $date['id']?>"><img src="<?php echo $date['litpic']?>" alt="" width="176" height="120"></a>
  266. <a href="shop.php?id=<?php echo $date['id']?>"><?php echo $date['title']?></a>
  267. <div>
  268. <span>¥ <?php echo $date['money']?></span>
  269. <span><?php echo $date['tags']?></span>
  270. </div>
  271. </div>
  272. <?php endforeach;?>
  273. </div>
  274. <!--右侧功能快速入口-->
  275. <div class="quick-entry">
  276. <a href=""><img src="static/images/ad/1.png" alt="" ></a>
  277. <a href=""><img src="static/images/ad/2.png" alt=""></a>
  278. <a href=""><img src="static/images/ad/3.png" alt=""></a>
  279. <a href=""><img src="static/images/ad/4.png" alt=""></a>
  280. <div>
  281. <a href=""><img src="static/images/ad/image.png" alt=""></a>
  282. <a href=""><img src="static/images/ad/ad2.jpg" alt=""></a>
  283. </div>
  284. </div>
  285. </div>
  286. </div>
  287. <!-- 大标题-->
  288. <div class="public-headline">
  289. <span>合作单位</span>
  290. </div>
  291. <!-- 合作友情链接-->
  292. <div class="index-frend-links">
  293. <?php
  294. $img="select * from `edu_flink`";
  295. $stmt=$pdo->prepare($img);
  296. $stmt->execute();
  297. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  298. foreach ($dates as $date):?>
  299. <a href="<?php echo $date['url']?>"><?php echo $date['name']?></a>
  300. <?php endforeach;?>
  301. </div>
  302. </main>
  303. <!--公共页脚-->
  304. <?php include __DIR__ ."/public/footer.php" ?>
  305. </body>
  306. </html>

运行结果

新闻列表页

php代码

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <link rel="stylesheet" href="article_list.css">
  6. <title>文章系统列表页</title>
  7. </head>
  8. <body>
  9. <!--公共页眉-->
  10. <?php include __DIR__ ."/public/head.php"?>
  11. <!--文章系统公共头部-->
  12. <div class="article-header">
  13. <div class="content">
  14. <img src="static/images/ar-logo.png" alt="">
  15. <a href="">财经</a>&gt;<span>正文</span>
  16. <div class="search">
  17. <input type="search" id="search" placeholder="搜索关键字">
  18. <label class="iconfont icon-sousuo2" for="search"></label>
  19. </div>
  20. </div>
  21. </div>
  22. <!--将列表与评论放在一个main元素中-->
  23. <main>
  24. <!--公共评论列表1-->
  25. <div class="public-comment-list">
  26. <h3>最新评论</h3>
  27. <ul>
  28. <?php
  29. $sql="select * from `edu_new` order by `comment` desc limit 10;";
  30. $stmt=$pdo->prepare($sql);
  31. $stmt->execute();
  32. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  33. foreach ($dates as $date):?>
  34. <li> <a href="view.php?id=<?php echo $date['id']?>"><?php echo mb_substr($date['title'],0,20)?></a></li>
  35. <?php endforeach;?>
  36. </ul>
  37. </div>
  38. <!--公共评论列表2-->
  39. <div class="public-comment-list">
  40. <h3>最新评论</h3>
  41. <ul>
  42. <?php
  43. $sql="select * from `edu_new` order by `comment` desc limit 10;";
  44. $stmt=$pdo->prepare($sql);
  45. $stmt->execute();
  46. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  47. foreach ($dates as $date):?>
  48. <li> <a href="view.php?id=<?php echo $date['id']?>"><?php echo mb_substr($date['title'],0,20)?></a></li>
  49. <?php endforeach;?>
  50. </ul>
  51. </div>
  52. <!--文章系统图文列表-->
  53. <div class="article-list-content">
  54. <div class="top-nav">
  55. <a href="">头条</a>
  56. <a href="">热文</a>
  57. <a href="">直播</a>
  58. <a href="" id="active">新闻</a>
  59. <a href="">政策地图</a>
  60. <a href="">相对论</a>
  61. <a href="">人物</a>
  62. <a href="">行情</a>
  63. <a href="">投研</a>
  64. <a href="">技术</a>
  65. <a href="">百科</a>
  66. </div>
  67. <?php
  68. $img="select * from `edu_new` limit 5";
  69. $stmt=$pdo->prepare($img);
  70. $stmt->execute();
  71. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  72. foreach ($dates as $date):?>
  73. <div class="img-list">
  74. <a href="view.php?id=<?php echo $date['id']?>"><img src="<?php echo $date['litpic']?>" alt="" width="272"></a>
  75. <div class="intro">
  76. <div class="title">
  77. <a href="view.php?id=<?php echo $date['id']?>"><?php echo $date['title']?></a>
  78. <span><?php echo $date['description']?></span>
  79. </div>
  80. <div class="time">
  81. <a href="view.php?id=<?php echo $date['id']?>"><?php echo $date['source']?> · 46 分钟前</a>
  82. <span><i class="iconfont icon-icon_yulan"></i>2233</span>
  83. </div>
  84. </div>
  85. </div>
  86. <?php endforeach;?>
  87. </div>
  88. <!--文章系统公共推荐图文列表-->
  89. <?php include __DIR__ ."/public/img_com.php"?>
  90. <!-- 分页条-->
  91. <div class="public-paginate">
  92. <a href="">&lt;</a>
  93. <a href="">1</a>
  94. <a href="">2</a>
  95. <a href="">3</a>
  96. <a href="">4</a>
  97. <a href="">5</a>
  98. <a href="">6</a>
  99. <a href="">7</a>
  100. <a href="">8</a>
  101. <a href="">&gt;</a>
  102. </div>
  103. </main>
  104. <!--公共页脚-->
  105. <?php include __DIR__ ."/public/footer.php"?>
  106. </body>
  107. </html>

运行结果

新闻详情页

php代码

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <!-- 当前文档要用到阿里字体图标-->
  6. <link rel="stylesheet" href="static/font/iconfont.css">
  7. <link rel="stylesheet" href="article_detail.css">
  8. <title>文章系统详情页</title>
  9. </head>
  10. <body>
  11. <!--公共页眉-->
  12. <?php include __DIR__ ."/public/head.php"?>
  13. <?php
  14. $aid=$_GET['id'];
  15. $img = "select * from `edu_new` where id=:id";
  16. $stmt = $pdo->prepare($img);
  17. $stmt->execute(['id'=>$aid]);
  18. $date = $stmt->fetch(PDO::FETCH_ASSOC);
  19. ?>
  20. <!--文章系统公共头部-->
  21. <div class="article-header">
  22. <div class="content">
  23. <img src="static/images/ar-logo.png" alt="">
  24. <a href="">财经</a>&gt;<span>正文</span>
  25. <div class="search">
  26. <input type="search" id="search" placeholder="搜索关键字">
  27. <label class="iconfont icon-sousuo2" for="search"></label>
  28. </div>
  29. </div>
  30. </div>
  31. <!--将列表与评论放在一个main元素中-->
  32. <main>
  33. <!--公共评论列表-->
  34. <div class="public-comment-list">
  35. <h3>最新评论</h3>
  36. <ul>
  37. <?php
  38. $sql="select * from `edu_new` order by `comment` desc limit 10;";
  39. $stmt=$pdo->prepare($sql);
  40. $stmt->execute();
  41. $dates=$stmt->fetchAll(PDO::FETCH_ASSOC);
  42. foreach ($dates as $date):?>
  43. <li> <a href="view.php?id=<?php echo $date['id']?>"><?php echo mb_substr($date['title'],0,20)?></a></li>
  44. <?php endforeach;?>
  45. </ul>
  46. </div>
  47. <?php
  48. $aid=$_GET['id'];
  49. $img = "select * from `edu_new` where id=:id";
  50. $stmt = $pdo->prepare($img);
  51. $stmt->execute(['id'=>$aid]);
  52. $date = $stmt->fetch(PDO::FETCH_ASSOC);
  53. ?>
  54. <!--文章系统内容详情-->
  55. <div class="article_detail">
  56. <h1><?php echo $date['title'] ?></h1>
  57. <div>
  58. <span>发布时间:<?php echo date('Y年m月d日',$date['pubdate'])?></span>
  59. <span>来源: <?php echo $date['source']?></span>
  60. <span>阅读量:12545</span>
  61. <span>评论数:145</span>
  62. </div>
  63. <div>
  64. <?php echo $date['body'] ?>
  65. </div>
  66. </div>
  67. <!--点赞-->
  68. <div class="article-detail-like">
  69. <span></span>
  70. <span></span>
  71. </div>
  72. <!--公共评论与回复-->
  73. <div class="public-comment-reply">
  74. <!-- 评论区-->
  75. <div class="comment">
  76. <h3>我要评论</h3>
  77. <div>
  78. <label for="comment"><img src="static/images/user.png" alt=""></label>
  79. <textarea name="" id="comment"></textarea>
  80. </div>
  81. <button>发表评论</button>
  82. </div>
  83. <!-- 回复区-->
  84. <div class="reply">
  85. <h3>最新回复</h3>
  86. <div>
  87. <img src="static/images/user.png" alt="">
  88. <div class="detail">
  89. <span>用户昵称</span>
  90. <span>留言内容: php中文网,是一个有温度,有思想的学习平台</span>
  91. <div>
  92. <span>2019-12-12 15:34:23发表</span>
  93. <span><i class="iconfont icon-dianzan"></i>回复</span>
  94. </div>
  95. </div>
  96. </div>
  97. <div>
  98. <img src="static/images/user.png" alt="">
  99. <div class="detail">
  100. <span>用户昵称</span>
  101. <span>留言内容: php中文网,是一个有温度,有思想的学习平台</span>
  102. <div>
  103. <span>2019-12-12 15:34:23发表</span>
  104. <span><i class="iconfont icon-dianzan"></i>回复</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div>
  109. <img src="static/images/user.png" alt="">
  110. <div class="detail">
  111. <span>用户昵称</span>
  112. <span>留言内容: php中文网,是一个有温度,有思想的学习平台</span>
  113. <div>
  114. <span>2019-12-12 15:34:23发表</span>
  115. <span><i class="iconfont icon-dianzan"></i>回复</span>
  116. </div>
  117. </div>
  118. </div>
  119. <div>
  120. <img src="static/images/user.png" alt="">
  121. <div class="detail">
  122. <span>用户昵称</span>
  123. <span>留言内容: php中文网,是一个有温度,有思想的学习平台</span>
  124. <div>
  125. <span>2019-12-12 15:34:23发表</span>
  126. <span><i class="iconfont icon-dianzan"></i>回复</span>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <!--文章系统公共推荐图文列表-->
  133. <?php include __DIR__ ."/public/img_com.php"?>
  134. </main>
  135. <!--公共页脚-->
  136. <?php include __DIR__ ."/public/footer.php"?>
  137. </body>
  138. </html>

运行结果

案例总结

1.数据库表的结构分析至关重要,可以防止反复增加字段,加长项目时间。做这个案例的过程中,体会非常深刻。表之间的关联性差,自认为是创建表结构中最大的问题。

2.foreash循环二维数组,高效有方便。

3.页面中,可能php代码冗余,却也只能用最笨的方法来实现。猜想或许可以通过一个方法,载入不同的sql语句,能够实现查询相应条件数据。

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议