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".'
  • ';