From 6f322de18247e90526b1add12537fd510763e925 Mon Sep 17 00:00:00 2001 From: LyLme Date: Wed, 23 Feb 2022 19:08:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A9=BA=E5=88=86=E7=BB=84?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/list.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/list.php b/include/list.php index 9506c57..c5c4b1b 100644 --- a/include/list.php +++ b/include/list.php @@ -1,14 +1,18 @@
  • '.$group["group_icon"].''.$group["group_name"].'
  • '; //输出分组图标和标题 $group_links = mysqli_query($con,"SELECT * FROM `lylme_links` WHERE `group_id` = ".$group["group_id"]); + $link_num=mysqli_num_rows($group_links); // 获取返回字段条目数量 + + echo ''."\n" ;$i = 0; continue;} + while($link = mysqli_fetch_array($group_links)) { // 循环每个链接 // 返回指定分组下的所有字段 - $link_num=mysqli_num_rows($group_links); // 获取返回字段条目数量 + if($link_num > $i ) { $i = $i+1; echo "\n".'
  • ';